2016-03-11 260 views
0

我試圖打開一個IPython的筆記本,我得到以下錯誤:導入錯誤時jupyter筆記本

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 

任何幫助,這問題將不勝感激。

+0

你嘗試與PIP3安裝? –

+0

不,我沒有嘗試。我正在使用python 2.7 – Qbite

回答

1

嘗試更新conda第一:

conda update conda 
conda update --all 

然後安裝jupyter像以前一樣:

conda install jupyter 
+0

這可能是有效的,因爲pip install -U jsonschema完成了這個任務。 – Qbite