- 打开cmd安装
pip install matplotlib
- 运行报错:AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'
# 解决方案
# 查看版本
pip show matplotlib
# 卸载
pip uninstall matplotlib
# 安装3.5
pip install matplotlib==3.5.0
pip install matplotlib
# 解决方案
# 查看版本
pip show matplotlib
# 卸载
pip uninstall matplotlib
# 安装3.5
pip install matplotlib==3.5.0