Ich erhalte diese Fehlermeldung immer dann, wenn ich versuche, ein Paket zu installieren, sei es Django, Twillio oder Wget, oder sogar eine Bibliothek anfordere.
Der Befehl, den ich verwende:
Code: Select all
C:\Python27\python.exe -m pip install wget
Code: Select all
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 [url=viewtopic.php?t=26065]problem[/url] 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
Code: Select all
C:\Python27\python.exe -m pip config set global.trusted-host "pypi.org pypi.python.org"
Ich habe auch den Befehl -W ignorieren versucht, funktioniert immer noch nicht:

Ich habe auch versucht, den Pip mit zu aktualisieren --trusted-host, es geht immer noch nicht. Ich kann den Pip auch nicht aktualisieren:
Code: Select all
C:\Python27\python.exe -m pip install —-upgrade pip --trusted-host pypi.org

Mobile version