Keine import-Module in jupyter notebook; falsch sys.Pfad

Ich habe ein problem beim importieren von Modulen in meinem iPython/Jupyter notebook. Das problem grundsätzlich liegt, wo die sys.Pfad verweist.

Aus der iPython/Jupyter notebook sys.executable gibt:

'/usr/bin/python'

Jedoch von der Kommandozeile aus, gibt es:

'//anaconda/bin/python'

Habe ich probiert un-Installation und re-Installation von Anakondas, aber das problem bleibt immer noch.

Habe ich auch schon versucht verstärkt $PYTHONPATH in meinem bash_profile zu zählen //anaconda/bin/python, aber das heißt nicht, es zu lösen.

Ist es irgendwie ändern, das sys.Weg in meiner jupyter notebook dauerhaft, ohne einfach mithilfe von sys.Pfad.append(...)?

InformationsquelleAutor runawaykid | 2015-12-21
Schreibe einen Kommentar