AttributeError: type object ‘IOLoop‘ has no attribute ‘initialized‘

今天想要运行jupyter notebook,结果运行后报错:

AttributeError: type object ‘IOLoop’ has no attribute ‘initialized’
在这里插入图片描述

然后上网搜集资料说是tornado版本过高导致的,于是我去看了一下我的tornado版本:

在这里插入图片描述

发现我的tornado是6.1版本的,网上说建议安装tornado 4.4.3版本的,于是先把原来版本的tornado卸载:

pip uninstall tornado

然后再查看tornado是否卸载干净:

conda list

接着暗转tornado 4.4.3版本的:

pip install tornado==4.4.3

用pip安装有时候会报错,所以可以用conda安装:

conda install tornado==4.4.3

安装成功:

在这里插入图片描述

然后在命令窗口输入jupyter notebook就可以打开了

猜你喜欢

转载自blog.csdn.net/weixin_46235937/article/details/129763691