Kernel died(code: 1). AttributeError: type object ‘IOLoop‘ has no attribute “initialized“ 问题解决方法

2023-11-20

问题描述

在jupyter运行某一项目时,安装好了所有的依赖包,但无法运行,会弹出Kernel died(code: 1). AttributeError: type object ‘IOLoop’ has no attribute “initialized”。
在这里插入图片描述

问题解决

此问题出现是由于tornado的版本过高,需要调到4.5。
同时需要注意,有些电脑可能存在多个python环境,需要明确当前的项目所在的环境是哪一个,再调整版本。

  1. conda查看所有环境
    conda env list
    本人的环境有以下两个,其中项目所在的环境是PDE-Net
    在这里插入图片描述
  2. 进入需要调整版本的环境
    conda active PDE-Net
    在这里插入图片描述
  3. 在当前环境中卸载tornado
    pip uninstall tornado
    在这里插入图片描述
  4. 卸载完成后,再重新安装tornado
    pip install tornado==4.4.3
    在这里插入图片描述
    问题解决~
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Kernel died(code: 1). AttributeError: type object ‘IOLoop‘ has no attribute “initialized“ 问题解决方法 的相关文章

随机推荐