安装了高版本的 PYQT5 后,原来安装的 老版本的 spyder打开闪退
考虑是版本不兼容的问题
卸载了spyder,重新安装了最新版 Version: 5.3.1的spyder
在anaconda prompt中输入如下命令:
pip uninstall spyder # 卸载spyder
pip install spyder==5.3.1 # 安装spyder
安装后,每次到下面这个界面 还是 闪退:
于是 用 pip check 命令查看是否还存在环境的冲突
可以看到 spyder 闪退可能是因为 ipzkerne1 和 jupyter-client 包的版本过低:
spyder-kernels 2.3.1 has requiremant ipzkerne1<7,>=6.9.2; python_version >=“3", but you have ipykerne1 5.3.2.
spyder-kernels 2.3.1 has requiremant jupyter-client(8,>=7.3.1; python_version >=“g3", but you have jupter-client 6.1.6
在anaconda prompt中,输入如下命令更新ipzkerne1 和 jupyter-client 包
pip install ipzkerne1==6.9.2
pip install jupyter-client==7.3.1
之后问题解决