Solve the problem that spyder and Jupyter Notebook cannot be opened

created at 05-29-2022 views: 1

error

Open Anaconda Prompt and enter the command:

activate tensorflow
Jupyter Notebook

Prompt error:

Traceback (most recent call last):

File "D:\Anaconda3\Scripts\jupyter-Notebook-script.py", line 3, in
import notebook.notebookapp
File "D:\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 32, in
ioloop.install()
File "D:\Anaconda3\lib\site-packages\zmq\eventloop\ioloop.py", line 195, in install
assert (not ioloop.IOLoop.initialized()) or \
AttributeError: type object 'IOLoop' has no attribute 'initialized'

solution

pip uninstall tornado
pip install tornado==4.5.3

A permissionerror appears, close all python-related processes, try again, and the installation is complete.

Then we can reopen Jupyter Notebook.

created at:05-29-2022
edited at: 05-29-2022: