尝试打开Jupyter Notebook (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这曾经很管用。你知道怎么诊断吗?
发布于 2018-04-20 20:14:58
我也遇到了同样的问题,只需在macOS终端中使用pip install jupyter即可修复。
发布于 2019-09-17 18:10:49
我面临着同样的问题,并能够通过以下步骤解决。
conda create -n py36 python=3.6
conda activate py36
conda install notebook ipykernel jupyterlab发布于 2016-08-30 22:49:48
我也遇到过类似的问题。基本上,我通过卸载python2.7并重新安装更新的python和IPython版本解决了这个问题。
有关如何通过Mac命令行有效卸载python2.7的详细信息,请访问此处:How to uninstall Python 2.7 on a Mac OS X 10.6.4?
通过命令行重新安装所需版本的IPython。在我的例子中,我还需要通过以下方式重新安装Jupyter:
$ pip install jupyter祝好运。
https://stackoverflow.com/questions/36482850
复制相似问题