[英]I am not able to run jupyter notebook after installation in ubuntu
I installed jupyter on my ubuntu system via the following command :我通过以下命令在我的 ubuntu 系统上安装了 jupyter:
sudo pip install jupyter
After executing it I could run jupyter notebook
successfully.执行后,我可以成功运行jupyter notebook
。 But unfortunately while trying to upgrade it for python3, I accidentally deleted all jupyter
links from my /usr/local/bin
.但不幸的是,在尝试为 python3 升级它时,我不小心从我的/usr/local/bin
删除了所有jupyter
链接。 Now jupyter notebook
is not running.现在jupyter notebook
没有运行。 I have tried un-installing and re-installing also.我也尝试过卸载和重新安装。 I have no clue about what should I do now.我不知道我现在应该做什么。
Don't install python packages with sudo unless you really know what you're doing.除非你真的知道你在做什么,否则不要用 sudo 安装 python 包。
Try this instead:试试这个:
$ virtualenv myvenv
$ cd myvenv
$ source bin/activate
$ pip install jupyter
$ jupyter notebook
To run it the next time (in a new shell session ie), simply do:要下次运行它(在新的 shell 会话中,即),只需执行以下操作:
$ cd myvenv
$ source bin/activate
$ jupyter notebook
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.