Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jupyter not found after pip install jupyter

After many different ways of trying to install jupyter, it does not seem to install correctly.

May be MacOS related based on how many MacOS system python issues I've been having recently

pip install jupyter --user

Seems to install correctly

But then jupyter is not found

where jupyter jupyter not found

Not found

Trying another install method found on SO

pip install --upgrade notebook

Seems to install correctly

jupyter is still not found

where pip /usr/local/bin/pip

What can I do to get the command line jupyter notebook command working as in the first step here: https://jupyter.readthedocs.io/en/latest/running.html#running

like image 688
SwimBikeRun Avatar asked Aug 03 '17 22:08

SwimBikeRun


2 Answers

Short answer: Use python -m notebook

After updating to OS Catalina, I installed a brewed python: brew install python. It symlinks the Python3, but not the python command, so I added to my $PATH variable the following:

/usr/local/opt/python/libexec/bin

to make the brew python the default python command (don't use system python, and now python2.7 is deprecated). python -m pip install jupyter works, and I can find the jupyter files in ~/Library/Python/3.7/bin/, but the tutorial command of jupyter notebook doesn't work. Instead I just run python -m notebook.

like image 60
ehacinom Avatar answered Oct 04 '22 20:10

ehacinom


My MacOS has python 2.7, I installed python3 with brew, then the following commands work for me

brew install python3

brew link --overwrite python
pip3 install ipython

python3 -m pip install jupyter

like image 24
Vikki Avatar answered Oct 04 '22 20:10

Vikki