Jupyter Notebook:ImportError:无法导入名称'默认'

时间:2017-03-31 20:30:16

标签: ipython jupyter-notebook jupyter

当尝试使用命令Jupyter Notebook启动Jupyter时,我收到以下错误:

File "/anaconda/bin/jupyter-notebook", line 4, in <module>
import notebook.notebookapp
File "/anaconda/lib/python3.6/site-packages/notebook/notebookapp.py", 
line 63, in <module>
from .services.contents.manager import ContentsManager
File "/anaconda/lib/python3.6/site-
packages/notebook/services/contents/manager.py", line 16, in <module>
from nbformat import sign, validate, ValidationError
File "/anaconda/lib/python3.6/site-packages/nbformat/sign.py", line 24, 
in <module>
from traitlets import (
ImportError: cannot import name 'default'

知道缺少什么吗?

2 个答案:

答案 0 :(得分:0)

我卸载了traitlets包并重新安装了它。问题消失了。不知道它是如何破裂的。

答案 1 :(得分:0)

我使用:
pip3 install --user --upgrade traitlets

对我来说很好。