. Advertisement .
..3..
. Advertisement .
..4..
I get an error
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory
When trying to execute jupyter notebook in my virtual environment in Arch Linux. How to fix the error executing jupyter command ‘notebook’: [errno 2] no such file or directory error? Please give me some advice.
The cause: The problem that the file or directory is not found can be caused by running
pip install "ipython[notebook]"
. Because it muddles everything.Solution: To solve the problem, you should reinstall from PyPi and run like this:
The problem was for me that
jupyter notebook
becamejupyter-notebook
upon installation.If this doesn’t work try
python -m notebook
. If it opens, thenexport PATH=$PATH:~/.local/bin/
. Next, refresh your path by opening another terminal and then tryjupyter notebook
again.Finally, if this doesn’t work, you can take a look in
vim /usr/local/bin/jupyter-notebook
,vim /usr/local/bin/jupyter
, andvim /usr/local/bin/jupyter-lab
(if JupyterLab is installed) and change the #!python Version at the top to match the version you are using. For example, I installed Python 3.8.2 onto my mac. However, those files still had the path for the 3.6 version so I changed it to#!/Library/Frameworks/Python.framework/Versions/3.8/bin/python3