Ich habe Probleme bei der Installation des plotly-Pakets in meinem Jupyter-Notebook. Ich habe die Methode auf der offiziellen Website ausprobiert und sie wird wie folgt angezeigt:
$ pip install plotly==5.7.0
Und es stellte sich heraus:
File "<ipython-input-37-cd34544b05a0>", line 1
$ pip install plotly==5.7.0
^
SyntaxError: invalid syntax
Ich habe auch versucht:
!pip install plotly
Und es heißt:
Collecting plotly
Could not fetch URL https://pypi.org/simple/plotly/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/plotly/
Kann mir jemand helfen oder die Anleitung teilen? Vielen Dank.
Lösung des Problems
Das Problem liegt bei deinem Proxy. Sie müssen das Verify == False irgendwo setzen. Normalerweise geht das über CMD viel einfacher. Sie können jedoch versuchen, dies auf Jupyter zu verwenden
!pip install plotly config --global http.sslVerify false
Wie in meiner Antwort unten angegeben. Wenn die Leitung nicht funktioniert, haben Sie ein größeres Problem, nämlich Ihren Proxy. Nachdem Sie Ihren Proxy eingerichtet haben, verwenden Sie bitte diese Zeile
!pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org plotly
Keine Kommentare:
Kommentar veröffentlichen