加载jupyter笔记本时导入错误

时间:2016-03-11 10:37:19

标签: python ipython anaconda jupyter

我正在尝试打开ipython笔记本,我收到以下错误:

jupyter notebook

Traceback (most recent call last):
File "/Users/jguedes/anaconda/bin/jupyter-notebook", line 4, in <module>
import notebook.notebookapp
File "/Users/jguedes/anaconda/lib/python2.7/site-packages/notebook   /notebookapp.py", line 61, in <module>
from .services.contents.manager import ContentsManager
File "/Users/jguedes/anaconda/lib/python2.7/site-packages/notebook/services/contents/manager.py", line 16, in <module>
from nbformat import sign, validate, ValidationError
File "/Users/jguedes/anaconda/lib/python2.7/site-packages/nbformat/__init__.py", line 33, in <module>
from .validator import validate, ValidationError
File "/Users/jguedes/anaconda/lib/python2.7/site-packages/nbformat/validator.py", line 21, in <module>
raise ImportError(str(e) + verbose_msg)
ImportError: No module named _version

Jupyter notebook format depends on the jsonschema package:

    https://pypi.python.org/pypi/jsonschema

Please install it first.

为了安装我使用的jupyter

conda install jupyter

对此问题的任何帮助都将受到高度赞赏。

1 个答案:

答案 0 :(得分:1)

首先尝试更新conda

conda update conda
conda update --all

然后像以前一样安装jupyter

conda install jupyter