解决 Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure
如果编写程序类似于:importmatplotlib.pyplotaspltplt.plot([1,2,3],[5,7,4])plt.show()或者:importmatplotlibmatplotlib.use('Agg')#使用Aggimportmatplotlib.pyplotaspltplt.plot([1,2,3],[5,7,4])plt.show()出现了Matplotlibiscur