【Plt 绘图保存错误】AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘

阅读 37

2023-02-14


问题

使用 plt.savefig() 时报错:

AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘

解决 

Matplotlib 的版本过高,需要降低:

pip uninstall matplotlib
pip install matplotlib==3.5.0

精彩评论(0)

0 0 举报