我通过以下命令在我的ubuntu系统上安装了jupyter:
sudo pip install jupyter
执行后,我可以成功运行jupyter notebook
。
但遗憾的是,在尝试升级python3时,我意外删除了jupyter
中的所有/usr/local/bin
个链接。
现在jupyter notebook
没有运行。我也尝试过卸载和重新安装。
我不知道现在应该怎么做。
答案 0 :(得分:1)
除非你真的知道自己在做什么,否则不要用sudo安装python包。
请改为尝试:
$ virtualenv myvenv
$ cd myvenv
$ source bin/activate
$ pip install jupyter
$ jupyter notebook
要在下次运行它(在新的shell会话中),只需执行:
$ cd myvenv
$ source bin/activate
$ jupyter notebook