В настоящее время я использую MacOS (10.13.4) и Python 2.7.14.
Я вообще не могу заставить pip устанавливать какие-либо пакеты. Все, что я получаю, это следующая ошибка
Collecting scrapy
Could not fetch URL https://pypi.python.org/simple/scrapy/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
Could not find a version that satisfies the requirement scrapy (from versions: )
No matching distribution found for scrapy
Для справки вот еще одно сообщение об ошибке пакетов:
Collecting dateutil
Could not fetch URL https://pypi.python.org/simple/dateutil/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
Could not find a version that satisfies the requirement dateutil (from versions: )
No matching distribution found for dateutil
Не уверен, что это актуально, но вот это тоже:
$ which openssl
/usr/bin/openssl
$ openssl version
LibreSSL 2.2.7
И из Python:
>>> import ssl
>>> print ssl.OPENSSL_VERSION
OpenSSL 0.9.8zh 14 Jan 2016
Любая помощь на этом этапе будет оценена.
Я сделал. Он по-прежнему возвращает то же сообщение об ошибке.






Вы можете попробовать использовать
--trusted-hostдляpypi.python.org