问题描述:
利用PyCharm中Matplotlib绘图时,出现AttributeError: module ‘backend_interagg’ has no attribute 'FigureCanvas’错误。

在这里插入图片描述

问题原因及解决方法:
matplotlib版本过高,需要降低matplotlib版本。
注:现有matplotlib版本为3.6.0,将其降低为3.5.0

pip uninstall matplotlib
pip install matplotlib==3.5.0

至此,问题得以解决!

Logo

新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐