简体   繁体   中英

Import error when loading jupyter notebook

I'm trying to open an ipython notebook and I get the following error:

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.

In order to install jupyter I used

conda install jupyter

Any help with this issue would be highly appreciated.

Try updating conda first:

conda update conda
conda update --all

And then install jupyter as before:

conda install jupyter

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM