记录–Spyder打开时出现"An error occurred while starting the kernel"
使用Spyder时出现"An error occurred while starting the kernel"。Spyder报错AttributeError: type object 'IOLoop' has no attribute 'initialized'
解决方案:
搜索了一下网上的方法,如下:
方法一:
重启spyder:
命令为spyder --reset
试了不行,还是出现"An error occurred while starting the kernel"。
方法二:
在终端输入了conda update spyder ipykernel tornado pyzmq
这个也试了,仍然报错
方法三:
根据下面这篇文章,试了下终于成功解决。据说是tornado版本太高了,查了下我的是6.0的版本,就卸载原有版本,重新安装了一个低版本。
https://blog.youkuaiyun.com/weixin_39916379/article/details/111507635
pip uninstall tornado
pip install tornado==4.5.3:
在使用Spyder时遇到错误'An error occurred while starting the kernel',尝试了重启Spyder和更新相关库未果。问题根源在于tornado版本过高。通过卸载高版本的tornado(6.0),并安装低版本(4.5.3)成功解决了问题。该解决方案适用于遇到相同错误的用户。
1万+

被折叠的 条评论
为什么被折叠?



