2016-04-07 128 views
0

試圖打開Jupyter筆記本(OSX 10.11.4)我得到以下錯誤:Jupyter錯誤: 「無模塊命名jupyter_core.paths」

$ jupyter-notebook 
Traceback (most recent call last): 
    File "/usr/local/bin/jupyter-notebook", line 7, in <module> 
    from notebook.notebookapp import main 
    File "/Users/geotheory/Library/Python/2.7/lib/python/site-packages/notebook/__init__.py", line 25, in <module> 
    from .nbextensions import install_nbextension 
    File "/Users/geotheory/Library/Python/2.7/lib/python/site-packages/notebook/nbextensions.py", line 23, in <module> 
    from jupyter_core.paths import jupyter_data_dir, jupyter_path, SYSTEM_JUPYTER_PATH 
ImportError: No module named jupyter_core.paths 

這用來工作。任何想法如何診斷?

+1

PIP安裝--upgrade setuptools的點子 或可能有一些其他的快速件事,試圖在這裏 https://github.com/jupyter/notebook/issues/270 PIP安裝--upgrade IPython中 – bbergvt

回答

0

我遇到過類似的問題。基本上,我解決了它通過卸載python2.7並重新安裝新的python & IPython版本。如何有效地通過卸載的Mac OS命令行python2.7

詳細信息是在這裏:通過命令行How to uninstall Python 2.7 on a Mac OS X 10.6.4?

重新安裝IPython中的所需版本。就我而言,我還需要通過重新安裝Jupyter:

pip install jupyter

好運。

0

今天早上我遇到了類似的問題。當我更改bash_profile中的$ PYTHONPATH目錄時。然後我通過重新指定python路徑回到/usr/lib/python2.*來解決。我希望這會有所幫助。