After installing with pip install jupyter
, terminal still cannot find jupyter notebook
.
Ubuntu simply says command not found
. Similar with ipython
. Did pip
not get install properly or something? How does Ubuntu know where to look for executables installed with pip
?
If jupyter run by this command:
simply run this command in terminal
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:
should start notebook
On Mac OS you need to export
~/.local/bin
inside your$PATH
variable.To be able to run
jupyter notebook
from terminal, you need to make sure that~/.local/bin
is in your path.Do this by running
export PATH=$PATH:~/.local/bin
for your current session, or adding that line to the end of~/.bashrc
to make your changes last for future sessions (e.g. by usingnano ~/.bashrc
). If you edit ~/.bashrc you will need to log out and log back in to make see your changes take effect.The only thing that worked me is to export to PATH the Python version that is related to the pip3 of course :) (after a lot of struggling) just run:
you should get something like (in Mac):
Now run:
If it works for you :) just add it to your
bashrc
orzshrc
Execute this in Terminal
Worked for me on Ubuntu 16.10, Python3, Anaconda3
UPDATE
Add path in your ~/.bashrc or ~/.zshrc(if you are using zsh bash) file
add the below line to the file
Close the file with