解决方法一:matplotlib最新版本与其他版本不兼容,可以降版本解决 解决方法二:关联安装最新版本的pyqt包,执行如下命令 pip install --upgrade matplotlib pip install pyqt5