158

What do you recommend guys for this error when I type in console ipython notebook and got

ImportError: No module named notebook.notebookapp

?

I installed ipython notebook with pip and really I don't know what is going on.

dapias
  • 2,342
  • 3
  • 13
  • 21

8 Answers8

304

For 4.0 and above You need to install the notebook app separately from https://github.com/jupyter/notebook

pip install jupyter
flazzarini
  • 7,023
  • 5
  • 31
  • 33
user2429409
  • 3,172
  • 1
  • 11
  • 3
19

conda install jupyter will install latest jupyter along with other required dependencies

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
mistune-0.7                |           py27_0         186 KB
jinja2-2.8                 |           py27_0         263 KB
jupyter_core-4.0.3         |           py27_0          25 KB
tornado-4.2.1              |           py27_0         515 KB
jupyter_client-4.0.0       |           py27_0          88 KB
nbformat-4.0.0             |           py27_0         112 KB
ipykernel-4.0.3            |           py27_0         111 KB
nbconvert-4.0.0            |           py27_0         266 KB
jupyter_console-4.0.0      |           py27_0          22 KB
notebook-4.0.1             |           py27_0         4.2 MB
qtconsole-4.0.0            |           py27_0         120 KB
ipywidgets-4.0.2           |           py27_0          93 KB
jupyter-1.0.0              |           py27_0           2 KB
------------------------------------------------------------
                                       Total:         6.0 MB
vikas
  • 1,086
  • 1
  • 11
  • 12
10

This two commands will fix most problems for you:

sudo pip install --upgrade setuptools pip
sudo pip install --upgrade "ipython[all]"
Liang Xiao
  • 1,372
  • 2
  • 13
  • 19
9

I got the same problem when upgrading ipython. This is a bug linked to the latest 4 version, I recommend you switch back to the stable version 3.2.1:

pip uninstall -y ipython
pip install ipython==3.2.1
Community
  • 1
  • 1
meduz
  • 3,528
  • 1
  • 24
  • 38
3

this is what it worked for me:

pip install -U notebook
sanchezis
  • 415
  • 4
  • 9
2

if you are using python version 2

pip install jupyter

in case using python 3.x

pip3 install jupyter

to be on the safe side also check that notebook module is installed or not

pip install notebook

or

pip3 install notebok

Khan
  • 1,138
  • 9
  • 11
1

Install Specific Version:

pip install jupyter

Upgrade jupyter

sudo pip3 install --upgrade jupyter

Getting Dependency Error in Window 10 Use code: easy_install instead of pip install

easy_install jupyter 

Upgrade using easy install

sudo easy_install --upgrade  jupyter

On OSX System to install Module: Use code: brew install instead of pip install

brew install jupyter 

Without Using Pip :

 sudo apt-get install -y jupyter 

On CentOS7 or Linux Fedora:

yum -y install jupyter 

Or on Fedora try

sudo dnf install jupyter 

Command if Homebrew screws up your path on macOS:

python -m pip install jupyter 

For Python3 MacOs Homebrew screws

python3 -m pip install jupyter

Verify module from list MacOs

pip freeze | grep  jupyter

For Execute on Anaconda as your python package manager

 conda install -c anaconda jupyter 
0

Try this:

pip install jupyter

It is worked for me.

bob marti
  • 1,423
  • 2
  • 10
  • 24