Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'jupyter notebook' command not working on Linux

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.

like image 770
LoLa Avatar asked May 20 '18 17:05

LoLa


1 Answers

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
like image 99
Pitto Avatar answered Nov 11 '22 05:11

Pitto