2016-04-07 103 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.*来解决。我希望这会有所帮助。