在 ubuntu 中安装后,我无法 运行 jupyter notebook

I am not able to run jupyter notebook after installation in ubuntu

我通过以下命令在我的 ubuntu 系统上安装了 jupyter:

sudo pip install jupyter

执行后我可以 运行 jupyter notebook 成功。 但不幸的是,在尝试为 python3 升级时,我不小心删除了 /usr/local/bin 中的所有 jupyter 链接。 现在 jupyter notebook 不是 运行ning。我也尝试过卸载和重新安装。 我不知道我现在应该做什么。

除非您真的知道自己在做什么,否则不要使用 sudo 安装 python 包。

试试这个:

$ virtualenv myvenv
$ cd myvenv
$ source bin/activate
$ pip install jupyter
$ jupyter notebook

下次 运行 它(在新的 shell 会话中),只需执行以下操作:

$ cd myvenv
$ source bin/activate
$ jupyter notebook