Я продолжаю получать эту ошибку всякий раз, когда пытаюсь установить какой-либо пакет, будь то django, twillio или wget, или даже библиотека запросов.
Команда, которую я использую:
Код: Выделить всё
C:\Python27\python.exe -m pip install wget
Код: Выделить всё
C:\Python27\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:164: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecurePlatformWarning,
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '_ssl.c:499: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol'),)) - skipping
Код: Выделить всё
C:\Python27\python.exe -m pip config set global.trusted-host "pypi.org pypi.python.org"
Я также пробовал команду -W ignore, все равно не работает:

Я также пытался обновить пип с помощью --trusted-host, все еще не могу этого сделать. Я тоже не могу обновить пип:
Код: Выделить всё
C:\Python27\python.exe -m pip install —-upgrade pip --trusted-host pypi.org

Подробнее здесь: https://stackoverflow.com/questions/798 ... arning-and
Мобильная версия