After installing with pip, “jupyter: command not f

2019-01-30 05:59发布

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?

14条回答
2楼-- · 2019-01-30 06:23

If you installed Jupyter notebook for Python 2 using 'pip' instead of 'pip3' it might work to run:

ipython notebook
查看更多
时光不老,我们不散
3楼-- · 2019-01-30 06:25

Try "pip3 install jupyter", instead of pip. It worked for me.

查看更多
淡お忘
4楼-- · 2019-01-30 06:25

On Mac Os High Sierra, I installed jupyter with

python3 -m pip install jupyter    

And then, binary were installed in:

/Library/Frameworks/Python.framework/Versions/3.6/bin/jupyter-notebook
查看更多
Melony?
5楼-- · 2019-01-30 06:28
  • Open a terminal window using Ctrl+Alt+T.

  • Run the command gedit ~/.profile.

  • Add the line. export PATH=$PATH:/.local/bin/jupyter-notebook. to the bottom and save.

  • Log out and log in again.

Hopefully this will work.

查看更多
仙女界的扛把子
6楼-- · 2019-01-30 06:30

I had to run "rehash" and then it was able to find the jupyter command

查看更多
Lonely孤独者°
7楼-- · 2019-01-30 06:31

Most generally (in case of jupyter not being in /local/bin) use,

which jupyter

Example output

~/miniconda3/bin/jupyter

to see the path for jupyter, then explicitly use that path with sudo

sudo ~/miniconda3/bin/jupyter 
查看更多
登录 后发表回答