原因是Spyder不是最新版本,而我的pyqtwebengine和pyqt5的版本是最新的,出现了不匹配的问题
ERROR: spyder 4.0.1 requires pyqtwebengine<5.13; python_version >= "3", which is not installed.
ERROR: spyder 4.0.1 has requirement pyqt5<5.13; python_version >= "3", but you'll have pyqt5 5.15.0 which is incompatible.
如此一来,就只能更新Spyder了。
直接在Anaconda Navigator中更新速度太慢,更到一半就会断开。
可以使用命令来更新。
打开Anaconda Prompt,通过pip install spyder==*
可以查看Spyder的版本。
然后可以使用命令安装Spyderpip install spyder==4.1.4
或者pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ spyder==4.1.4
推荐使用后者,速度对比如下:
更新完成后,Spyder终于可以正常使用了。