spyder打开闪退
(base) C:\Users\温宝佳>spyder
link image0 hasn't been detected!
Bad file descriptor (bundled\zeromq\src\epoll.cpp:100)
[9616:6808:0901/161506.932:ERROR:broker_win.cc(59)] Error reading broker pipe: 管道已结束。 (0x6D)
(base) C:\Users>pip cheeck
ERROR: unknown command "cheeck" - maybe you meant "check"
(base) C:\Users>pip check
WARNING: Error parsing requirements for pyzmq: [Errno 2] No such file or directory: 'c:\users\温宝佳\appdata\roaming\python\python39\site-packages\pyzmq-23.2.1.dist-info\METADATA'
spyder 5.3.3 requires pyzmq, which is not installed.
spyder-kernels 2.3.3 requires pyzmq, which is not installed.
qtconsole 5.3.2 requires pyzmq, which is not installed.
jupyter-client 7.3.5 requires pyzmq, which is not installed.
ipykernel 6.15.2 requires pyzmq, which is not installed.
notebook 6.4.8 requires pyzmq, which is not installed.
jupyter-server 1.13.5 requires pyzmq, which is not installed.
daal4py 2021.5.0 requires daal, which is not installed.
conda-repo-cli 1.0.4 requires pathlib, which is not installed.
anaconda-project 0.10.2 requires ruamel-yaml, which is not installed.
jupyter-server 1.13.5 has requirement pywinpty<2; os_name == "nt", but you have pywinpty 2.0.2.
(base) C:\Users>
求给予解决方法
1.先看是错误提示是什么,执行spyder run 出现了以下四个提示。
2.执行pip check 看看具体缺啥,能看到说缺少pyqt5和pyqtwbengine,那问题就简单了,安装不就行了嘛。
3.执行pip install pyqy5==某个版本,如果不确定是什么版本,那么就写一个不存在的,然后再选择一个低版本安装就行,建议安装低版本,新版本估计兼容适配一堆问题。最终选择了5.12.3,那么就是pip install pyqy5==5.12.3;安装完一个,肯定还有个pyqtwbengine也得安装,同样的操作来一套安装上去
4.安装完之后执行spyder --new-instance,结果还是没起来,这下报错信息换了,说明上面问题已经解决了,来瞅瞅是什么,参考各路大神的文章,做种这个错误被定义在了pyzmq上。
5.先卸载pyzmq,后面再安装一个比较老的版本,原因估计是自己安装的比较新(纯属瞎猜),卸载命令pip uninstall pyzmq
6.卸载完以后从新找个老版本安装就可以了,步骤和第3步一样
7.重新启动spyder --new-instance,顺利启动成功