I recently installed Jupyter Notebook on my Linux machine (which has Python 3.6 installed) according to their instructions:
python3 -m pip install --upgrade pip
python3 -m pip install jupyter
However, when I run
jupyter notebook
I get the following error:
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory
If I run:
cd /usr/bin
ls -l | grep jupyter
The results are:
-rwxr-xr-x 1 root root 397 Feb 20 00:29 jupyter
-rwxr-xr-x 1 root root 413 Feb 20 00:29 jupyter-migrate
-rwxr-xr-x 1 root root 423 Feb 20 00:29 jupyter-troubleshoot
There doesn't seem to be a 'notebook' script in there.
python3 -m pip list
includes notebook 5.5.0
in its output.
Other answers suggest installing Anaconda, but I'd like to avoid that for now. I'm just curious why it isn't working, since the installation instructions were very brief and clear.
I'm more looking to understand the problem, rather than for a quick fix. Thanks!
Edit: jupyter notebook
now seems to work properly after another restart + reinstall. Thanks for the help.
Something went wrong with your installation.
If you want to use pip please try:
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
If this doesn't work please install Jupyter using this command:
sudo apt install jupyter-notebook
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With