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

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


当前回答

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

我安装jupyter与:

pip install jupyter

和命令:

jupyter notebook

没有工作,所以:

sudo apt install jupyter-notebook

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

其他回答

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

python3 -m pip install jupyter    

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

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

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

ipython notebook

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

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

jupyter-lab

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

你没有退出并重新登录吗?它应该在您执行的路径上。 如果不是,pip在.local中安装可执行文件,所以在终端中:

 ~/.local/bin/jupyter-notebook

应该开始写笔记本

安装 jupyterlab。

如果你得到这个错误:

ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

requests 2.25.1 requires idna<3,>=2.5, but you'll have idna 3.1 which is incompatible.

用这个:

pip3 install jupyterlab --use-feature=2020-resolver