简体   繁体   中英

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

I installed jupyter on my ubuntu system via the following command :

sudo pip install jupyter

After executing it I could run jupyter notebook successfully. But unfortunately while trying to upgrade it for python3, I accidentally deleted all jupyter links from my /usr/local/bin . Now jupyter notebook is not running. 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.

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:

$ cd myvenv
$ source bin/activate
$ jupyter notebook

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM