2016-04-30 9 views
6

Ich habe plotly.py installiert, um einige Plots mit Jupyter zu bearbeiten, aber ich kann es nicht importieren.Plotly in Jupyter Ausgabe

! pip install plotly --upgrade 
Requirement already up-to-date: plotly in c:\python34\lib\site-packages 
Requirement already up-to-date: requests in c:\python34\lib\site-packages (from plotly) 
Requirement already up-to-date: six in c:\python34\lib\site-packages (from plotly) 
Requirement already up-to-date: pytz in c:\python34\lib\site-packages (from plotly) 
Cleaning up... 

und dann

import plotly 
    --------------------------------------------------------------------------- 
ImportError        Traceback (most recent call last) 
<ipython-input-6-c27a4132ad2e> in <module>() 
----> 1 import plotly 

    ImportError: No module named 'plotly' 

ich Python läuft 3.4.1, so wie Jupyter, und die Sache, die ich nicht bekommen kann ist, dass plotly ganz gut funktioniert, wenn ich Python renne aus der Befehlszeile. Irgendwelche Vorschläge? (Ich möchte Python wirklich nicht sauber installieren)

+0

Ich habe auch das gleiche Problem – victorleungtw

Antwort

5

Ich hatte die gleichen Probleme. Das Ausführen der folgenden Eingabeaufforderung hat mein Problem gelöst.

Es ist wahrscheinlich, dass das über pip install plotly installiert von Jupter irgendwie nicht erkannt wird.

+0

Es hat nicht funktioniert. Im Terminal, wenn ich rufe python3; importieren plotly , es ist in Ordnung, aber nicht in Jupyter Notebook. – hjmnzs