执行`jupyter notebook`时出错(没有这样的文件或目录)

Dav*_*hen 84 python-3.x jupyter-notebook

当我jupyter notebook在Arch Linux中的虚拟环境中执行时,发生以下错误.

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

我的python版本是3.6,而我的jupyter版本是4.3.0

我搜索了很多,但我找不到与此问题相关的任何内容.

提前致谢.

Lou*_*ies 133

在我看来,好像安装已经搞砸了.试试跑步:

# For Python 2
pip install --upgrade --force-reinstall --no-cache-dir jupyter
# For Python 3
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
Run Code Online (Sandbox Code Playgroud)

这应该从PyPi重新安装所有东西.这应该解决问题,因为我认为运行pip install "ipython[notebook]"搞砸了.

  • 这不能解决我的问题.我正在使用Ubuntu 17.04和Python 3.6 (4认同)
  • 添加--user后,它对我有用.如果没有这个选项,我就会在包装上获得许可.我记得前一段时间安装过该软件包,也许我使用了sudo或类似的东西. (4认同)
  • 它对我来说很完美!非常感谢! (2认同)
  • pip3 install --upgrade --force-reinstall --no-cache-dir jupyter为我工作.我使用的是Windows 10和python 3.5 (2认同)

Nic*_*aro 40

对我来说,问题是命令在安装后jupyter notebook更改为jupyter-notebook.

  • 这对我来说绝对是个问题,谢谢. (3认同)
  • 这也解决了我的问题,我将添加我的防病毒软件(当时是avast)第一次阻止了 jupyter - 不得不输入两次命令。 (2认同)

sid*_*hrc 19

试试这个命令: python -m IPython notebook

向GitHub用户Milannju致信,他们在这里提供了解决方案.

  • 如果要链接到网站上的特定位置,只需检查 html,找到要链接的元素并使用 id 并将 `#ID` 附加到 url (2认同)

Tha*_*orn 14

对我有用.(Ubuntu 18.04 LTS上的Python 3.6)

export PATH=$PATH:~/.local/bin/
Run Code Online (Sandbox Code Playgroud)


小智 8

在Ubuntu 18.10上,以下命令帮助了我。

sudo apt-get install jupyter-notebook
Run Code Online (Sandbox Code Playgroud)


rah*_*hul 5

使用下面的命令,如果您使用的是 pip3,请将 pip 替换为 pip3

pip install --upgrade --force-reinstall jupyter
Run Code Online (Sandbox Code Playgroud)

这对我有用。


Dee*_*ood 5

由于 pip 和 pip3.6 都已安装并且 pip install --upgrade --force-reinstall jupyter 失败,所以我使用

pip3.6 install --upgrade --force-reinstall jupyter

这对我有用。jupyter notebook安装后运行也有效。


小智 5

在Mac OS上无法安装Jupyter

运行jupyter笔记本:-> python -m笔记本