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

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


当前回答

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

其他回答

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

我安装jupyter与:

pip install jupyter

和命令:

jupyter notebook

没有工作,所以:

sudo apt install jupyter-notebook

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

在Ubuntu上安装Jupyter Notebook之后,我得到了以下错误:

异常:Jupyter命令' Jupyter -notebook'未找到。

我使用简单的命令,它为我工作

PIP install——upgrade——force-重装——no-cache-dir jupyter

来源:http://commandstech.com/how-to-install-jupyter-on-ubuntu16-04-with-pictures-commands-errors-solution/

从root用户退出后执行:

朱皮特笔记本

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

在MacOs上,这对我来说很管用:

/Users/`userName`/opt/anaconda3/bin/jupyter_mac.command

我都试过了,

pip install jupyter

and

pip3 install jupyter

但最后还是用

sudo -H pip install jupyter

以另一个用户-H执行命令

-H (HOME)选项要求安全策略将HOME环境变量设置为密码数据库指定的目标用户(默认为root)的主目录。根据策略的不同,这可能是默认行为。