user3282758
user3282758

Reputation: 1471

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.

Upvotes: 1

Views: 632

Answers (1)

ffledgling
ffledgling

Reputation: 12130

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 i.e), simply do:

$ cd myvenv
$ source bin/activate
$ jupyter notebook

Upvotes: 1

Related Questions