欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Error executing Jupyter command 'notebook': [Errno 2 解决方案

程序员文章站 2022-03-03 16:34:42
...

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

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

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

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

在我看来,好像安装已经搞乱了。尝试运行:

# For Python 2
pip install --upgrade --force-reinstall --no-cache-dir jupyter
# For Python 3
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter

这应该重新安装PyPi中的所有内容。这应该解决这个问题,因为我认为运行起来pip install "ipython[notebook]"很糟糕。

对我来说,问题在于命令在安装后jupyter notebook改变了jupyter-notebook。

 

相关标签: python3