Root не может установить python пакеты в aws - PullRequest
0 голосов
/ 25 января 2020

Я запускаю экземпляр EC2 в aws с образом Ubuntu 18.04. Я не могу установить python пакеты для root:

$ python3 -m pip install tornado

Работает для пользователя ubuntu, но:

$ sudo su
# python3 -m pip install tornado
Collecting tornado
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fef245955c0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/tornado/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fef24595c88>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/tornado/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fef24595fd0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/tornado/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fef24595198>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/tornado/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fef24595f98>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/tornado/
  Could not find a version that satisfies the requirement tornado (from versions: )
No matching distribution found for tornado

Что может быть причиной такого поведения?

...