Running Jupyter mit mehreren Python- und IPython-Pfaden
Ich würde gerne mit Jupyter-Notebooks arbeiten, hatte aber Schwierigkeiten, grundlegende Importe durchzuführen (z. B. matplotlib importieren). Ich denke, das lag daran, dass ich mehrere benutzerverwaltete Python-Installationen habe. Zum Beispiel
> which -a python
/usr/bin/python
/usr/local/bin/python
> which -a ipython
/Library/Frameworks/Python.framework/Versions/3.5/bin/ipython
/usr/local/bin/ipython
> which -a jupyter
/Library/Frameworks/Python.framework/Versions/3.5/bin/jupyter
/usr/local/bin/jupyter
Früher hatte ich Anaconda, wurde aber aus dem ~ / anaconda-Verzeichnis entfernt. Wenn ich jetzt ein Jupyter-Notizbuch starte, erhalte ich einen Kernel-Fehler:
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py",
line 947, in init restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py",
line 1551, in _execute_child raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2]
No such file or directory: '/Users/npr1/anaconda/envs/py27/bin/python'
Was soll ich machen?