重装Pycharm后,使用matplotlib绘图出现错误:'This application failed to start because not Qt platform plugin could be initialized.' 该问题可能影响到大多数基于Qt的绘图库。尝试修改环境变量、设置临时系统环境变量以及修改PySide2的__init__.py文件均是解决方案,但只有修改文件能持久解决问题。
摘要由CSDN通过智能技术生成
重装Pycharm后,用matplotlib画图
This application failed to start because not Qt platform plugin could be initialized.## 标题
python 用matplotlib作图,报错not Qt platform plugin could be initialized
重装Pycharm后,用matplotlib画图This application failed to start because not Qt platform plugin could be initialized.## 标题背景:重新安装pycharm后使用matplotlib画图弹出错误窗口全程又没有调用过Pyside2或pyqt5.新建了一个Project,导入matplolib,运行一个最简单的程序import matplotlib.pyplot as pltplt.plot([