Невозможно установить awscli с pip3 - PullRequest
0 голосов
/ 06 июля 2019

Это ошибка, которую я получаю, когда пытаюсь установить awscli с pip3 (версия 10.0.1).

Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) 
after connection broken by 'ProtocolError('Connection aborted.',
OSError(0, 'Error'))': /simple/awscli/
Could not find a version that satisfies the requirement awscli (from versions: )
No matching distribution found for awscli

Когда я пытаюсь выполнить приведенную ниже команду, я получаю ту же ошибку, что и выше:

pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org awscli

Буду признателен за любую помощь. Спасибо!

1 Ответ

1 голос
/ 07 июля 2019

Проблема в этом случае заключалась в том, что была запущена другая программа, которая принимала все запросы через порт 443.Запрос cURL не выполнен с ошибкой:

Unknown SSL protocol error in connection to pypi.org:443, но это произошло потому, что он подключался с использованием 127.0.0.1.

 Trying 151.101.0.223... * TCP_NODELAY set * Connected to pypi.org (127.0.0.1) port 443 (#0) * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: /Users/lillymcleod/anaconda/ssl/cacert.pem CApath: none * TLSv1.2 (OUT), TLS header, Certificate Status (22): * TLSv1.2 (OUT), TLS handshake, Client hello (1): * Unknown SSL protocol error in connection to pypi.org:443 * Curl_http_done: called premature == 0 * Closing connection 0

Этот пост https://superuser.com/questions/1045431/curl-connecting-to-localhost-127-0-0-1-instead-of-destination-ip был полезен при определении, какая программа работала, используя следующие команды:

# Finds the ports receiving requests 
nc -v -w 2 YOUR_DOMAIN_HERE YOUR_PORT_HERE
# Find the applications running on the ports
nettop -nm tcp

После того, как приложение было убито, установка pipКоманда снова сработала, как и ожидалось.

...