用pip安装jupyter后,终端仍然找不到jupyter笔记本。

Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?


当前回答

我尝试了所有的方法,最后在运行树莓派4的树莓派操作系统上,这对我来说是有效的

sudo apt install python3-notebook jupyter jupyter-core

其他回答

使用Ctrl+Alt+T打开终端窗口。 执行gedit ~/.profile命令。 加线。导出路径= $路径:/。local / bin / jupyter-notebook。到底部保存。 注销后重新登录。

希望这能起作用。

在Mac Os High Sierra上,我安装了jupyter

python3 -m pip install jupyter    

然后,二进制文件被安装在:

/Library/Frameworks/Python.framework/Versions/3.6/bin/jupyter-notebook

在Mac OS上,您需要导出~/。在$PATH变量中使用local/bin。

# Edit the bash profile:
$ vim ~/.bash_profile

# Add this line inside ~/.bash_profile:
export PATH=$PATH:~/.local/bin

# Update the source:
$ source ~/.bash_profile

# Open Jupyter:
$ jupyter notebook

如果你使用'pip'而不是'pip3'为Python 2安装Jupyter notebook,它可能会运行:

ipython notebook

对我来说,在激活虚拟环境之前,它不起作用。