Matplotlib基本使用

发布时间 2023-11-23 14:18:48作者: DogLeftover
  • 打开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