SSL-Fehler in Python umgehen.
Problem bei der Installation von Python-Paketen. Hinter der Firmenfirewall werden die Zertifikate ausgetauscht und damit läuft der Download bzw. die Installation mittels pip nicht mehr.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)'))'
Eine Lösung in diesem Fall ist im Python-Verzeichnis eine „pip.ini“ Datei anzulegen, sofern noch nicht vorhanden.
c:\Python\Python39-32\pip.ini
Hier fügen wir den folgenden Inhalt ein.
[global]
trusted-host = pypi.org
files.pythonhosted.org
Anschließend klappt der Download.
Collecting robotframework
Downloading robotframework-5.0.1-py3-none-any.whl (639 kB)
|████████████████████████████████| 639 kB 6.4 MB/s
Installing collected packages: robotframework
Successfully installed robotframework-5.0.1
