【问题标题】:I update anaconda in EC2, then I can't open Jupyter notebook in terminal, what should I do?我在 EC2 中更新 anaconda,然后我无法在终端中打开 Jupyter 笔记本,我该怎么办?
【发布时间】:2017-06-22 20:03:00
【问题描述】:

我只是按照this命令行更新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'

我该怎么办?

【问题讨论】:

    标签: python amazon-ec2 anaconda jupyter-notebook


    【解决方案1】:

    尝试运行:

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

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

    【讨论】:

      【解决方案2】:

      我通过删除我的 conda 环境然后 conda clean --all 解决了这个问题。就我而言,我认为这与 notebook 库的损坏的本地缓存有关

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-05-22
        • 2020-10-14
        • 2018-01-09
        • 1970-01-01
        • 1970-01-01
        • 2021-09-18
        • 2020-05-21
        • 2017-06-26
        相关资源
        最近更新 更多