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

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


当前回答

在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

其他回答

现在是2020年。 在我身边用mac解决这个问题: PIP安装jupyterlab而不是PIP安装jupyter。 在成功安装关键字之前会有一个警告: 在这里输入图像描述

你可以用jupyterlab看到路径 然后你只需要开始jupyter笔记本以下路径:

jupyter-lab

笔记本电脑将自动加载由您的默认浏览器。

更新的Jupyter版本默认不附带笔记本组件。

根据你的包管理器,你可以通过以下方式安装笔记本组件:

pip install notebook

or

poetry add notebook

用conda重新安装jupyter:

conda install jupyter

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

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

ipython notebook