【问题标题】:Jupyter notebook command returns Error executing Jupyter command 'notebook': [Errno 2] No such file or directoryJupyter notebook 命令返回执行 Jupyter 命令“notebook”时出错:[Errno 2] 没有这样的文件或目录
【发布时间】:2018-09-30 05:18:58
【问题描述】:

我一直在关注使用 Scikit-Learn 和 TensorFlow 进行动手机器学习这本书。我已遵循所有命令,但每次尝试运行 $jupyter notebook 我收到以下错误:

“执行 Jupyter 命令 'notebook' 时出错:[Errno 2] 没有这样的文件或目录”

这是我目前运行的所有命令的列表:

$sudo apt-get install python-setuptools

$sudo easy_install pip==9.0.1

$sudo pip install virtualenv

$pip3 install --user --upgrade virtualenv

$source env/bin/activate

$pip3 install --upgrade jupyter matplotlib numpy pandas scipy scikit-learn

$sudo pip install jupyter

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

$pip install notebook

如您所见,我已经尝试了很多,但仍然无法正常工作。我正在使用带有 ubuntu shell (bash) 的 Windows 10。我也安装了 anaconda,但它在我的 D: 驱动器中,而不是 C: 驱动器中。会是这样吗?任何帮助,将不胜感激。谢谢。

编辑:我已经在我的 C 驱动器上重新安装了 anaconda 并重新启动了我的计算机,但它仍然无法工作。

【问题讨论】:

  • 当您改为运行jupyter-notebook 时会发生什么?

标签: python pip jupyter-notebook virtualenv jupyter


【解决方案1】:

我遇到了类似的问题。这就是我为解决这个问题所做的(在 Ubuntu 16.04 上):

sudo apt-get remove ipython

sudo apt-get purge ipython

sudo apt-get autoremove

pip install jupyter(或 pip3,取决于 python 版本)

ipython 似乎是问题所在,因此删除它解决了问题。

我现在可以运行jupyter notebook

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-02-11
    • 2017-07-27
    • 2019-07-13
    • 2019-11-24
    • 1970-01-01
    • 2018-12-12
    • 2016-12-06
    相关资源
    最近更新 更多