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

问题描述

在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
    Kernel died(code: 1). AttributeError: type object ‘IOLoop‘ has no attribute “initialized“ 问题解决方法_第1张图片
  4. 卸载完成后,再重新安装tornado
    pip install tornado==4.4.3
    Kernel died(code: 1). AttributeError: type object ‘IOLoop‘ has no attribute “initialized“ 问题解决方法_第2张图片
    问题解决~

你可能感兴趣的:(知识百花园,python,python)