Jupyter notebook command does not work on Mac

pokiman picture pokiman · Jan 27, 2016 · Viewed 45k times · Source

I installed jupyter using pip on my macbook air. Upon trying to execute the command jupyter notebook, I get an error

jupyter: 'notebook' is not a Jupyter command

I used the --h option to get a listing of all jupyter commands and indeed, 'notebook' is not one of the commands. I am running python 2.7 and it was already installed before I installed jupyter.

I searched on google and I see a similar problem some people have faced with the latest version of jupyter but I don't see any solutions. Can somebody point me in the right direction?

which -a pip: /usr/local/bin/pip

which -a jupyter: /usr/local/bin/jupyter

Answer

mic picture mic · Apr 4, 2016

I had the same problem. After looking to a gazillion of pages on line and trying as many solutions, this is the only thing that worked for me:

pip uninstall notebook
pip install --upgrade notebook

I am not sure that the "upgrade" is necessary, but after that I had

jupyter-notebook

and

jupyter notebook

as commands.