ImportError: No module named notebook.notebookapp

后端 未结 6 1229
萌比男神i
萌比男神i 2020-12-12 15:47

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

ImportError: No module named notebook.notebook

相关标签:
6条回答
  • 2020-12-12 16:28

    This two commands will fix most problems for you:

    sudo pip install --upgrade setuptools pip
    sudo pip install --upgrade "ipython[all]"
    
    0 讨论(0)
  • 2020-12-12 16:33

    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

    0 讨论(0)
  • 2020-12-12 16:37

    Try this:

    pip install jupyter
    

    It is worked for me.

    0 讨论(0)
  • 2020-12-12 16:39

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

    pip install jupyter
    
    0 讨论(0)
  • 2020-12-12 16:42

    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
    
    0 讨论(0)
  • 2020-12-12 16:43

    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
    
    • note: the -y option indicates "yes I want to uninstall" with no interaction
    • note 2: possible duplicate in ipython server can't launch: No module named notebook.notebookapp
    0 讨论(0)
提交回复
热议问题