Python 在Nanobox中,pip安装遇到了NewConnectionError。无法使用pip安装程序包。
我为运行Ubuntu 18.04.1的本地计算机安装了nanobox。Nanobox使用本机docker。所以,我安装了Docker版本18.06.1。我能够运行nanobox,它使用boxfile.yml文件告诉nanobox运行python引擎。之后,我尝试使用pip安装新软件包,但它返回了NewConnectionError。我可以在本地计算机上使用pip安装新软件包,但在nanobox中它失败了Python 在Nanobox中,pip安装遇到了NewConnectionError。无法使用pip安装程序包。,python,pip,nanoboxio,Python,Pip,Nanoboxio,我为运行Ubuntu 18.04.1的本地计算机安装了nanobox。Nanobox使用本机docker。所以,我安装了Docker版本18.06.1。我能够运行nanobox,它使用boxfile.yml文件告诉nanobox运行python引擎。之后,我尝试使用pip安装新软件包,但它返回了NewConnectionError。我可以在本地计算机上使用pip安装新软件包,但在nanobox中它失败了 dinesh@dinesh-Inspiron-5559:~/Desktop/Test$ na
dinesh@dinesh-Inspiron-5559:~/Desktop/Test$ nanobox run
Preparing environment :
Test (local) :
✓ Restoring App
Preparing environment :
Building dev environment :
✓ Starting docker container
✓ Configuring
**
********
***************
*********************
*****************
:: ********* ::
:: *** ::
++ ::: ::: ++
++ ::: ++
++ ++
+
_ _ ____ _ _ ____ ___ ____ _ _
|\ | |__| |\ | | | |__) | | \/
| \| | | | \| |__| |__) |__| _/\_
--------------------------------------------------------------------------------
+ You are in a Linux container
+ Your local source code has been mounted into the container
+ Changes to your code in either the container or desktop will be mirrored
+ If you run a server, access it at >> 172.20.0.5
--------------------------------------------------------------------------------
/app $ pip install Flask
Collecting Flask
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2b29152d10>: Failed to establish a new connection: [Errno 113] No route to host',)': /simple/flask/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2b291525d0>: Failed to establish a new connection: [Errno 113] No route to host',)': /simple/flask/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2b291521d0>: Failed to establish a new connection: [Errno 113] No route to host',)': /simple/flask/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2b29159f90>: Failed to establish a new connection: [Errno 113] No route to host',)': /simple/flask/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2b29159610>: Failed to establish a new connection: [Errno 113] No route to host',)': /simple/flask/
Could not find a version that satisfies the requirement Flask (from versions: )
No matching distribution found for Flask
dinesh@dinesh-Inspiron-5559:~/Desktop/Test$nanobox运行
准备环境:
测试(本地):
✓ 还原应用程序
准备环境:
构建开发环境:
✓ 启动docker容器
✓ 配置
**
********
***************
*********************
*****************
:: ********* ::
:: *** ::
++ ::: ::: ++
++ ::: ++
++ ++
+
_ _ ____ _ _ ____ ___ ____ _ _
|\ | |__| |\ | | | |__) | | \/
| \| | | | \| |__| |__) |__| _/\_
--------------------------------------------------------------------------------
+您在一个Linux容器中
+您的本地源代码已装入容器中
+对容器或桌面中的代码所做的更改将被镜像
+如果运行服务器,请访问>>172.20.0.5
--------------------------------------------------------------------------------
/应用程序$pip安装烧瓶
收集瓶
“NewConnectionError(':无法建立新连接:[Errno 113]没有到主机的路由',)”:/simple/flash在连接被“NewConnectionError(':无法建立新连接,”)中断后重试(重试(重试(总计=4,连接=None,读取=None,重定向=None))/
“NewConnectionError(':无法建立新连接:[Errno 113]没有到主机的路由',)”:/simple/flash在连接被“NewConnectionError(':无法建立新连接,”)中断后重试(重试(重试(总计=3,连接=None,读取=None,重定向=None))/
“NewConnectionError(':未能建立新连接:[Errno 113]没有到主机的路由',)”:/simple/flask断开连接后重试(重试(总计=2,连接=None,读取=None,重定向=None))/
“NewConnectionError(':无法建立新连接:[Errno 113]没有到主机的路由',)”:/simple/flash在连接被“NewConnectionError(':无法建立新连接,”)中断后重试(重试(重试(总计=1,连接=None,读取=None,重定向=None))/
“NewConnectionError(':未能建立新连接:[Errno 113]没有到主机的路由',)”:/simple/flask断开连接后重试(重试(总计=0,连接=None,读取=None,重定向=None))/
找不到满足要求的版本(来自版本:)
未找到烧瓶的匹配分布
你能给我看看你的boxfile.yml吗?