在试过检索到的方法后发现都无法解决这个问题,包括重新装pyqt5、matplotlib等 后面我尝试只把画图的代码复制到新的py文件里导入相应的包,发现是能画出来的(参考一下博文所述) UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figur_56kb的博客-CSDN博客 特此记录一下