使用 plt.savefig() 时报错:
AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘
Matplotlib 的版本过高,需要降低:
pip uninstall matplotlib pip install matplotlib==3.5.0