anaconda spyder无法打开


一开始是闪退,在anaconda prompt中输入spyder --new-instance可以启动并能正常使用,且不再闪退。

但是过了一天后莫名其妙打不开,输入上面的指令也没有效果 ,jupyter notebook也突然无法使用。

尝试过以下办法

1、安装版本更低的spyder

2、根据pip check报的错,网上找方法一个一个修,但是到最后剩下pyqt5的包时,anaconda突然崩了,打不开

3、重装anaconda

重装后jupyter notebook可以正常使用,但spyder依旧无法打开。输入spyder --new-instance后可以打开spyder,但无法运行代码,控制台显示“正在连接Ipython内核…”,在这里卡住。

 

img

在anaconda prompt 中输入pip check 报错如下:

spyder 5.3.1 requires pyqt5, which is not installed.
pyqtwebengine 5.15.5 requires pyqt5, which is not installed.
pyqtwebengine 5.15.5 requires pyqt5-sip, 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.

似乎比重装前多了几个,这次不敢轻举妄动了。

输入spyder --new-instance报错如下:

**link image0 hasn't been detected!
ERROR:tornado.general:Uncaught exception in ZMQStream callback

Traceback (most recent call last):

……

AttributeError: '_asyncio.Future' object has no attribute 'index'
ERROR:tornado.general:Uncaught exception in zmqstream callback
Traceback (most recent call last):

(中间的报错基本全是这个)

……**

​恳请有人能帮忙解决,在此先谢过了

Spyder经常有问题,建议用pycharm

先来看看你的报错的意思:
spyder 5.3.1 requires pyqt5, which is not installed.
pyqtwebengine 5.15.5 requires pyqt5, which is not installed.
pyqtwebengine 5.15.5 requires pyqt5-sip, 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.
spyder 5.3.1需要未安装的pyqt5。
pyqtwebengine 5.15.5需要未安装的pyqt5。
pyqtwebengine 5.15.5需要未安装的pyqt5sip。
daal4py 2021.5.0需要未安装的daal。
conda repo cli 1.0.4需要未安装的pathlib。
anaconda项目0.10.2需要ruamel yaml,但未安装。
jupyter服务器1.13.5要求pywinpty<2;os_name==“nt”,但您有pywinpty 2.0.2。

中间的报错意思:
link image0 hasn't been detected!
ERROR:tornado.general:Uncaught exception in ZMQStream callback
Traceback (most recent call last):
尚未检测到链接图像0!
ERROR:tornado.常规:ZMQStream回调中未捕获异常
回溯(最近一次通话):

AttributeError: '_asyncio.Future' object has no attribute 'index'
ERROR:tornado.general:Uncaught exception in zmqstream callback
Traceback (most recent call last):
AttributeError:“_asyncio”。Future“对象没有属性”index“
ERROR:tornado.常规:zmqstream回调中未捕获异常
回溯(最近一次通话):
【目前想先了解下最新的情况,闪退后可以重新打开不?一个个修补debug,相对来说比较环境比较复杂,像你这种情况,我个人建议完全卸载,重新安装anaconda】

conda uninstall tornado
conda install tornado==4.5.3指定一个版本

换一个IDE试试

解决方法

第一步,卸载qt、pyqt相关的包:

conda remove QtPy PyQt5
pip uninstall QtPy PyQt5
第二步,重新下载 qt 和 pyqt

conda install QtPy PyQt5
或者用 pip:

pip install QtPy PyQt5
第三步,重新打开 spyder

spyder --new-instance

你好,目前看起来思路比较清晰,主要是版本匹配的问题,同时还有一种可能是你的window当前用户为中文,这个也会导致一些错误

主要办法,可以先尝试把anaconda删除,然后window中的中文用户修改为英文,再重新安装,即可

如果不重新安装,修改中文名称,可以参考如下博客
完美解决Anaconda打开Spyder5报错:link image0 hasn’t been detected!

参考一下呢