Install Jupyter on Mac OS El Capitan

I want to install jupyter, but I try this locally.

I do not want to use anaconda or install extra python with

brew install python

I write

pip install --user jupyter

It succeeds. But the installation is jupyternot in $PATH, so I get

$ jupyter notebook
zsh: command not found: jupyter

I am using zsh, btw ...

What should I do? What to add to $PATH?

+4
source share
3 answers

If you cannot execute the installed python package directly on OS X. Try:

python -m "package name" param / options

From python -h (help)

-m mod : run library module as a script (terminates option list)

eg.

python3 -m "jupyter" notebook

Please note that the python version may be different. If you installed jupyter with a different version of python, replace python3 with this version.

OS X python - 2,7x. .

+3

pip3, . El Capitan Sierra, : Terminal.app iTerm ( , )

vi ~/.profile
export PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin

vi, ESC, :wq source .profile jupyter , .

+2

jupyter notebook , . conda, pip/pip3 pip3 bash exec bash -l

which jupyter
/Library/Frameworks/Python.framework/Versions/3.6/bin/jupyter

bin zsh, .zshrc

export PATH=/Library/Frameworks/Python.framework/Versions/3.6/bin:$PATH

Or add to the existing $ PATH. Restart the terminal. Make sure jupyter bin is correct, it should be different if you used conda to install jupyter.

0
source

All Articles