After installing with pip install jupyter
, terminal still cannot find jupyter notebook
.
Ubuntu simply says command not found
Anyone looking for running jupyter as sudo, when jupyter installed with virtualenv (without sudo) - this worked for me:
First verify this is a PATH issue:
Check if the path returned by which jupyter
is covered by the sudo user:
sudo env | grep ^PATH
(As opposed to the current user: env | grep ^PATH
)
If its not covered - add a soft link from it to one of the covered paths. For ex:
sudo ln -s /home/user/venv/bin/jupyter /usr/local/bin
Now you sould be able to run:
sudo jupyter notebook
Try
python -m notebook
Or, if you used pip3 to install the notebook:
python3 -m notebook
On Mac OS Catalina and brewed Python3.7
After installation of Jupyter Notebook on Ubuntu I got below error:
Exception: Jupyter command 'jupyter-notebook' not found.
I used simple command it's working for me
pip install --upgrade --force-reinstall --no-cache-dir jupyter
Source: http://commandstech.com/how-to-install-jupyter-on-ubuntu16-04-with-pictures-commands-errors-solution/
After exit from root user then execute :
jupyter notebook
Here is how it worked for me The PATH for jupyter after installing it using pip is located
which pip
/usr/local/bin
so to run the jupyter notebook i just typed in my terminal:
jupyter-notebook
and it worked for me am using parrot os and installed jupyter using pip3
you did not log out and log in ? It should be on your path to execute. If not, pip installed executables in .local, so in a terminal:
~/.local/bin/jupyter-notebook
should start notebook
I tried both,
pip install jupyter
and
pip3 install jupyter
but finally got it done using
sudo -H pip install jupyter
execute a command as another user -H
The -H (HOME) option requests that the security policy set the HOME environment variable to the home directory of the target user (root by default) as specified by the password database. Depending on the policy, this may be the default behavior.