Notebook: Jupyter installation is not working with python 2.7+ on MacOS 10.11.6

Created on 7 Aug 2016  路  9Comments  路  Source: jupyter/notebook

image

I am getting errors when I run

sudo pip install jupyter

on my MacOS 10.11.6 machine with python 2.7+.

Do you have any idea what is going on? What should I do?

image

With notebook, I am getting the same problem. What is going on?

Question

Most helpful comment

Try this its working for me

python -m pip install --upgrade pip --user
pip install --upgrade --force-reinstall --no-cache-dir jupyter --user
To run the jupyter notebook:-> python -m notebook

All 9 comments

@shyamalschandra We don't recommend using sudo to install on OS X. I would recommend using the Anaconda distribution as described in the Jupyter documentation http://jupyter.readthedocs.io/en/latest/install.html. Alternatively, what is the full output if you type pip install jupyter?

I now used

pip install --user jupyter
pip install --user notebook

but when I do a jupyter notebook, jupyter says the following:

Shyamals-iMac-174:session-2 shyamalchandra$ jupyter notebook
jupyter: 'notebook' is not a Jupyter command

What do I do to solve this problem?

I would guess that the location it's installed scripts to (probably ~/.local/bin) is not on $PATH. We usually solve this by modifying PATH in something like ~/.bashrc.

I don't see ~/.local/bin in Mac OSX. Do I need to create the directory?

Thanks!

Maybe it's a different location on Macs, someone else will have to advise you on that.

@shyamalschandra I highly suggest that you just install Anaconda which will install Python, Jupyter, and most of the libs that you might use with Jupyter. Otherwise, installing Jupyter can get complicated. See the installation docs for more info.

Try this its working for me

python -m pip install --upgrade pip --user
pip install --upgrade --force-reinstall --no-cache-dir jupyter --user
To run the jupyter notebook:-> python -m notebook

@pashupati123 Thank You

Try this its working for me

python -m pip install --upgrade pip --user
pip install --upgrade --force-reinstall --no-cache-dir jupyter --user
To run the jupyter notebook:-> python -m notebook

it works for me!

Was this page helpful?
0 / 5 - 0 ratings