执行`jupyter notebook`时出错(没有这样的文件或目录) [英] Error when executing `jupyter notebook` (No such file or directory)
问题描述
当我在Arch Linux的虚拟环境中执行jupyter notebook
时,发生以下错误.
When I execute jupyter notebook
in my virtual environment in Arch Linux, the following error occurred.
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory
我的python版本是3.6,而jupyter版本是4.3.0
My python version is 3.6, and my jupyter version is 4.3.0
我在Google上搜索了很多,但找不到与该问题相关的任何信息.
I've googled a lot, but I just couldn't find anything relevant to this issue.
谢谢.
推荐答案
在我看来,安装似乎有些混乱.尝试运行:
It seems to me as though the installation has messed up somehow. Try running:
# 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]"
会使事情搞砸了.
This should reinstall everything from PyPi. This should solve the problem as I think running pip install "ipython[notebook]"
messed things up.
这篇关于执行`jupyter notebook`时出错(没有这样的文件或目录)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!