Error when executing `jupyter notebook` (No such file or directory)

David Chen picture David Chen · Mar 7, 2017 · Viewed 80.3k times · Source

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?

Answer

Louise Davies picture Louise Davies · Mar 8, 2017

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.