【报错记录】python使用mayplotlib 出现Cannot mix incompatible Qt library (5.15.6) with this library (5.15.8)

问题是比较奇怪的:我在vscode里在ML虚拟环境种使用mayplotlib跑不出图来,会报错“使用mayplotlib 出现Cannot mix incompatible Qt library (5.15.6) with this library (5.15.8)”,换个环境再使用mayplotlib ,又有用了,但是同一个环境ML在jupyter notebook里能跑出来。挺奇怪的。

最终有点解决思路的

VS代码集成终端在运行matplotlib脚本时显示Qt不兼容 - 问答 - Python中文网 (cnpython.com)

这个提示我看看pyQt5,确实是安装了,但是版本是5.15.7也不是5.15.8啊

【报错记录】python使用mayplotlib 出现Cannot mix incompatible Qt library (5.15.6) with this library (5.15.8)_第1张图片

于是我就把numpy,matplotlib,pyQt5都upgrade一下,有用了 

你可能感兴趣的:(python,开发语言)