我刚刚遵循此命令行更新Anaconda,然后当我键入jupyter notebook
时,我得到了此错误:
udacity@ip-172-31-25-67:~$ jupyter notebook
Traceback (most recent call last):
File "/home/carnd/anaconda3/bin/jupyter-notebook", line 4, in <module>
import notebook.notebookapp
File "/home/carnd/anaconda3/lib/python3.5/site-packages/notebook/notebookapp.py", line 64, in <module>
from .services.contents.filemanager import FileContentsManager
File "/home/carnd/anaconda3/lib/python3.5/site-packages/notebook/services/contents/filemanager.py", line 16, in <module>
from .filecheckpoints import FileCheckpoints
File "/home/carnd/anaconda3/lib/python3.5/site-packages/notebook/services/contents/filecheckpoints.py", line 15, in <module>
from . import tz
ImportError: cannot import name 'tz'
我该怎么办?
尝试运行:
conda config --add channels conda-forge
conda upgrade jupyter notebook
您可以在Conda文档中找到更多信息。
我通过删除我的conda环境然后 conda clean --all
解决了这个问题。就我而言,我认为这是与notebook
库的损坏的本地缓存