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

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


当前回答

以下是我在Linux mint 19上所做的:

我安装jupyter与:

pip install jupyter

和命令:

jupyter notebook

没有工作,所以:

sudo apt install jupyter-notebook

我解决了这个问题,jupyter笔记本工作了。

其他回答

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

大多数情况下(在jupyter不在/local/bin的情况下)使用,

which jupyter

示例输出

~/miniconda3/bin/jupyter

要查看jupyter的路径,请使用sudo显式地使用该路径

sudo ~/miniconda3/bin/jupyter 

尝试“pip3 install jupyter”,而不是pip。这对我很管用。

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

ipython 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