简体   繁体   中英

Unable to launch Jupyter Notebook

I'm unable to launch the Jupyter on Anaconda. I'm using windows, how can I get rid of this error? The error says:

Traceback (most recent call last):
File "C:\Users\User\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in 
from notebook.notebookapp import main
File "C:\Users\User\anaconda3\lib\site-packages\notebook\notebookapp.py", line 64, in 
raise ImportError(_("The Jupyter Notebook requires tornado >= 5.0, but you have %s") % tornado.version)
ImportError: The Jupyter Notebook requires tornado >= 5.0, but you have 4.5.3

You can probably remove it off your system then put it back on with for python

sudo apt-get remove python-tornado
sudo pip install tornado

similarly you could run it for python 3 if neccesary

sudo apt-get remove python3-tornado
sudo pip3 install -U tornado

or you could try the following to upgrade tornado

sudo pip install tornado --upgrade

you said:

I'm unable to launch the Jupyter on Anaconda.

you can update it from Anaconda.Navigator

  1. go to Anacondas' Environments
  2. search about tornado
  3. remove it 4.you will find your tornado 4.5.3

在此处输入图像描述

  1. click on the check then choose

  2. make for a specific version --> 6.1

  3. go to Anacondas' home page then ran jupyter [install -> launch ] done

Try uninstalling tornado with: (pip uninstall tornado) for some reason after deleting my tornado 4.5.3 it automatically updated to Version 6. and started working perfectly fine, I don't know the exact reason, possibly a missing dependency was auto installed I guess. whatever it is, this worked for me.

enter image description here

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