【问题标题】:Error while Executing jupyter notebook: [Errno 2] No such file or directory执行 jupyter notebook 时出错:[Errno 2] 没有这样的文件或目录
【发布时间】:2019-03-05 10:24:48
【问题描述】:

我已经安装了 anaconda,当我输入 jupyter notebook 时,出现以下错误。

Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

经过大量谷歌搜索后发现以下命令 (适用于 Python 3)

pip3 install --upgrade --force-reinstall --no-cache-dir jupyter

上述命令将从 PyPi 重新安装所有内容。 .即使执行此操作后,我也遇到了以下错误

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/attrs-19.1.0.dist-info'

你能帮我解决这个问题吗?

【问题讨论】:

    标签: python jupyter-notebook


    【解决方案1】:

    我尝试了很多方法,但在原始命令前面加上简单的“sudo”命令帮助我解决了这个问题。

    sudo pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
    

    【讨论】:

    • 感谢您的回答!
    【解决方案2】:

    IPython 导致了这个问题。所以卸载它会是一个更好的选择。

    sudo apt-get remove ipython
    sudo apt-get purge ipython
    sudo apt-get autoremove
    pip install jupyter
    

    现在执行 jupyter notebook 命令...

    【讨论】:

      猜你喜欢
      • 2018-09-30
      • 1970-01-01
      • 2017-07-27
      • 2018-02-11
      • 1970-01-01
      • 1970-01-01
      • 2019-03-17
      • 2020-05-01
      • 2019-12-12
      相关资源
      最近更新 更多