James Wonder
James Wonder

Reputation: 113

jupyter notebook installation issue using pip

I had a problem with jupyter notebook. Every time I started a notebook, kernel died.

So, I decided to uninstall jupyter notebook using pip:

pip uninstall jupyter notebook

After successful uninstallation, I installed again, using same pip:

pip install jupyter notebook

Then, as usually, I typed in cmd:

jupyter notebook

But got this error:

'jupyter' is not recognized as an internal or external command, operable program or batch file.

So I checked the location of IPython, and found out that now the right file, which I want to call is jupyter-notebook, which different from jupyter notebook by dash sign. If I run jupyter-notebook from cmd everything works.

Can anyone explain, what happened and why the file now called jupyter-notebook?

Thank You

Upvotes: 2

Views: 32160

Answers (3)

user1220514
user1220514

Reputation: 21

A solution without installing Anaconda, or conda:

sudo easy_install pip==20.3.4
pip2 install virtualenv
virtualenv jupyter
source jupyter/bin/activate
pip2 install jupyter
jupyter notebook

This solution was tested on:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial

It was run on 32bit Chromenotebook, with Firefox vs NetSurf installed on xenial

Jupyter notebook will be open automatically. However, everytime loging in on Jupiter again, at first source needs to be activated:

source jupyter/bin/activate

and then:

jupyter notebook

to start

terminal and Firefox screens on xenial

Upvotes: 0

SnipeWire
SnipeWire

Reputation: 1

I recommend that you always use conda instead of pip to install the Jupyter Notebook. In your case, for example, I will recommend:

conda install jupyter notebook 

and not pip install jupyter notebook I can see that most of the problems that you described there are environment related and hence you can often run into environment issues while using pip to install jupyter

Upvotes: -1

An0n
An0n

Reputation: 733

Because pip uses the legacy Python 2. Use pip3 to install:

pip3 install --upgrade pip
pip3 install jupyter
jupyter notebook  #to start jupyter notebook

I highly recommend installing Anaconda. Download Anaconda here.

Then use :

bash 

to install it.

Good Luck.

Upvotes: 9

Related Questions