Jupyter启动报错:AttributeError: type object ‘IOLoop‘ has no attribute ‘initialized‘

1.报错样式

Traceback (most recent call last):
  File "D:\APP\Anaconda\envs\torch\Scripts\jupyter-notebook-script.py", line 3, in <module>
    import notebook.notebookapp
  File "D:\APP\Anaconda\envs\torch\lib\site-packages\notebook\notebookapp.py", line 40, in <module>
    ioloop.install()
  File "D:\APP\Anaconda\envs\torch\lib\site-packages\zmq\eventloop\ioloop.py", line 210, in install
    assert (not ioloop.IOLoop.initialized()) or \
AttributeError: type object 'IOLoop' has no attribute 'initialized'

2.解决方法

个人的虚拟环境是Python3.6

2.1降低tornado版本

conda install tornado=4.5

我自己尝试的是这个,下面的升级版本没成功;

2.2升级pyzmq版本

我安装这个之后,jupyter可以打开,但是环境启动不起来,python环境丢失了

conda install -c anaconda pyzmq

3.总结

两种都尝试一下,先1后2,因个人环境不同,有点差异!

你可能感兴趣的:(#,报错记录,jupyter,python,pytorch)