在ubuntu中安装后我无法运行jupyter笔记本

时间:2016-09-09 12:43:29

标签: python ubuntu jupyter

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

sudo pip install jupyter

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

1 个答案:

答案 0 :(得分:1)

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

请改为尝试:

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

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

$ cd myvenv
$ source bin/activate
$ jupyter notebook