尝试打开Jupyter笔记本(OSX 10.11.4)时出现以下错误:
$ 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
这以前很管用。知道怎么诊断吗?
今天早上我遇到了类似的问题。当我在bash\u profile中更改$PYTHONPATH目录时。然后我通过重新指定返回/usr/lib/python2.*的python路径来解决问题。我希望这会有帮助。
我也面临同样的问题,通过以下步骤得以解决。
我也遇到过类似的问题。基本上,我通过卸载python2.7并重新安装较新的python&IPython版本解决了这个问题。
关于如何通过Mac OS命令行有效卸载python2.7的详细信息如下:How to uninstall Python 2.7 on a Mac OS X 10.6.4?
通过命令行重新安装所需版本的IPython。在我的情况下,我还需要通过以下途径重新安装Jupyter:
祝你好运。
相关问题 更多 >
编程相关推荐