Matplotlib is currently using agg 发表于 2022-12-01 分类于 解决方案 阅读次数: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure 问题报错pyplot存在大量绘图时报以下错误: 1Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure 解决方案在报出异常的py文件中导包末尾部分追加 12import matplotlibmatplotlib.use('TkAgg')