3

我为运行 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$ 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
4

0 回答 0