添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
小胡子的煎饼  ·  delphi - JPEG ...·  1 年前    · 
深情的青蛙  ·  word对勾快捷键-掘金·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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

My Python version is 3.6, and my Jupyter version is 4.3.0

How can I resolve 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

This should reinstall everything from PyPi. This should solve the problem as I think running pip install "ipython[notebook]" messed things up.

pip3 install --upgrade --force-reinstall --no-cache-dir jupyter worked for me. Im using windows 10 and python 3.5 – Romano Vacca Oct 1, 2017 at 14:20 It worked for me after adding --user. Without that option I was getting permission denied on a package. I remember installing that package some time ago, maybe I used sudo or something wrong like that. – aless80 Jan 10, 2018 at 14:42

For me the issue was that the command jupyter notebook changed to jupyter-notebook after installation.

If that doesn't work, try python -m notebook, and if it opens, close it, then export PATH=$PATH:~/.local/bin/, then refresh your path by opening a new terminal, and try jupyter notebook again.

And finally, if that doesn't work, take a look at vim /usr/local/bin/jupyter-notebook, vim /usr/local/bin/jupyter, vim /usr/local/bin/jupyter-lab (if you have JupyterLab) and edit the #!python version at the top of the file to match the version of python you are trying to use. As an example, I installed Python 3.8.2 on my mac, but those files still had the path to the 3.6 version, so I edited it to #!/Library/Frameworks/Python.framework/Versions/3.8/bin/python3

This solved my problem aswell, I'll add my anti virus( avast then) was blocking jupyter the first time - had to input the command twice. – Adav Aug 21, 2018 at 10:27 Exactly this! Tried to uninstall and install so many stuff due to what people have been telling, but this worked like a charm. – Schütze Dec 21, 2018 at 10:12 if you want to link to a specific spot on a website, just inspect the html, find an element you want to link to with an id and append #ID to the url – Neuron Apr 9, 2018 at 22:40 Yes but then you would use IPython, which always has python3 as kernel. If you want to use other kernels or other jupyter extensions, you should make jupyter work. – LBoss Oct 29, 2019 at 15:42 This solved my problem; I was trying to install Toree after a standard Jupyter Anaconda installation. – jmng May 30, 2019 at 9:12 Worked for me, too, I copy-pasted this command into my .bashrc to always make it work, not just in a terminal where I executed that command. – LBoss Oct 29, 2019 at 15:38 @Billa I tried all the commands suggested by the people in this post, but I was getting the same error again and again, so I simply tried to install jupyter-notebook using apt-get and not with pip/pip3. After that I was able to open jupyter-notebook in the browser. – pritish thakkar Aug 22, 2018 at 7:59

Since both pip and pip3.6 was installed and pip install --upgrade --force-reinstall jupyter was failing, so I used

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

and it worked for me. Running jupyter notebook also worked after this installation.

Use the command below and if you are using pip3 replace pip by pip3

pip install --upgrade --force-reinstall jupyter

This worked for me.

did not work for me :( . I have Ubuntu 17, jupyter does not seem to be working at all for me be it python 2.7 or python3...i have tried everything mentioned in this post..I keep getting Error executing Jupyter command 'notebook': [Errno 2] No such file or directory – siddharthrc Jan 10, 2018 at 18:22 I'm not sure if this works or not, just give a try, type whereis jupyter in terminal, delete those files and reinstall jupyter. – rahul Jan 25, 2018 at 13:46 I like this answer because my problem was environment-specific; when I used base environment I saw the issue; but if I source activate <different_environment> I did not see the issue (<different_environment> was diff). Maybe the other answers (like pip install) should start by activating the appropriate environment. – Nate Anderson Mar 1, 2020 at 17:04