当前位置:   article > 正文

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

pyqt 后 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.
  • 1
  • 2
  • 3

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

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

此时,只能先

pip uninstall pyqt5
  • 1
pip uninstall pyqt5-tools 
  • 1

卸载掉已安装的高版本pyqt

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

此处使用清华源快速安装

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

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

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

  • 1
  • 2

之后,就可以打开spyder了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/100666
推荐阅读
相关标签
  

闽ICP备14008679号