2017-06-22 107 views
1

我只是跟着this命令行來更新蟒蛇,然後當我輸入jupyter notebook,我得到這個錯誤:我更新EC2中的anaconda,然後我無法在終端打開Jupyter筆記本,我該怎麼辦?

[email protected]:~$ 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' 

我該怎麼辦?

回答

0

嘗試運行:

conda config --add channels conda-forge 
conda upgrade jupyter notebook 

您可以找到conda documentation的更多信息。

0

我通過刪除我的conda環境然後conda clean --all解決了此問題。在我的情況下,我認爲這是與一個損壞的本地緩存notebook

相關問題