Я установил nanobox для локального компьютера, на котором работает Ubuntu 18.04.1.Nanobox использует родной докер.Итак, я установил Docker версии 18.06.1.Я смог запустить Nanobox, который использует файл boxfile.yml, который сообщает Nanobox, что нужно запустить Python Engine.После этого я попытался установить новые пакеты, используя 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