Search code examples
pythonjupyter-notebook

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

Solution

  • 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