Ich kann mit pip kein Paket auf meinem Python 2.7 installieren. InsecurePlatformWarning: Ein echtes SSLContext-Objekt isPython

Python-Programme
Anonymous
 Ich kann mit pip kein Paket auf meinem Python 2.7 installieren. InsecurePlatformWarning: Ein echtes SSLContext-Objekt is

Post by Anonymous »

Ich kann anscheinend keine Bibliothek mehr auf meinem alten Python 2.7-Pip installieren.
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
die zurückgegebene Antwort:

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
Ich habe diesen Befehl bereits ausprobiert, aber er scheint das Problem nicht zu beheben:

Code: Select all

C:\Python27\python.exe -m pip config set global.trusted-host "pypi.org pypi.python.org"
Es wird immer noch der gleiche Fehler angezeigt. Ich benötige dieses alte Python 2.7 und den alten PIP, um eine alte Web-App-Software auszuführen.
Ich habe auch den Befehl -W ignorieren versucht, funktioniert immer noch nicht:
Image

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
Image

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post