安装高版本pyqt5之后,如何解决spyder打不开的问题

起初pip install PyQt5,pip install PyQt5-tools,均会出现报错:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.1.5 requires pyqtwebengine<5.13, which is not installed.
spyder 5.1.5 requires pyqt5<5.13, but you have pyqt5 5.15.6 which is incompatible.

之后我的spyder就打不开了 也不提示任何内容

这是因为spyder和高版本的pyqt5不兼容。

此时,只能先

pip uninstall pyqt5
pip uninstall pyqt5-tools 

卸载掉已安装的高版本pyqt

之后安装规定选择适合版本进行安装

此处使用清华源快速安装

pip3 install pyqt5==5.12.3 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip3 install pyqtwebengine==5.12.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip3 install typed-ast -i https://pypi.tuna.tsinghua.edu.cn/simple

之后,就可以打开spyder了

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值