UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figur

 

>>> plt.show()

__main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

 

原因:

发现发生在 coco.py 文件

UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figur

 

处理办法:

import matplotlib

>>> matplotlib.get_backend()

'agg'

>>> matplotlib.use('TkAgg')

上一篇:微信小程序生成图片


下一篇:大数据篇:DolphinScheduler-1.2.0.release安装部署