pip install
Wenn ich es versuche, erhalte ich den folgenden Fehler.
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
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("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Requirement already up-to-date: pip in ./.anyenv/envs/pyenv/versions/3.7.3/lib/python3.7/site-packages (19.0.3)
Es sieht aus wie ein SSL-Fehler, daher werde ich versuchen, OpenSSL vorerst neu zu installieren.
brew install openssl
Aber nein. Sie können die vertrauenswürdige Einstellung nicht zu ~ / .pip / conf.pip hinzufügen.
Die Neuinstallation von Python und pip löste das Problem. Ich habe Pyenv benutzt, also
pyenv install 3.8.0
pyenv global 3.8.0
curl -kL https://bootstrap.pypa.io/get-pip.py | python
Nach der Ausführung habe ich `` `pip install``` erneut ausgeführt und es hat gut funktioniert.
Es ist Moyamoya, aber es hat funktioniert, also lassen wir es so wie es ist. .. ..