降低matplotlib
时间: 2023-08-31 16:11:54 浏览: 48
版本后,仍然出现AttributeError: module ‘backend_interagg’ has no attribute 'FigureCanvas’错误。该如何解决?
回答: 降低matplotlib版本是解决问题的一种方法,但有时候可能会出现其他错误。在这种情况下,可以尝试以下解决方法:首先,确保你的PyCharm和matplotlib都是最新版本。然后,尝试卸载并重新安装matplotlib,使用以下命令:pip uninstall matplotlib,然后使用pip install matplotlib重新安装。如果问题仍然存在,可以尝试更新PyCharm的配置,确保正确设置了matplotlib的backend。具体的操作步骤可以参考引用\[2\]中提供的参考链接。如果问题仍然无法解决,可能是一个已知的BUG,可以在引用\[3\]中提供的链接中查找更多关于该问题的信息,并尝试寻找其他解决方法。
#### 引用[.reference_title]
- *1* *2* [PyCharm中解决Matplotlib绘图时AttributeError: module ‘backend_interagg‘ has no attribute ...](https://blog.csdn.net/weixin_51589360/article/details/127135031)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [解决backtrader绘图报错Axis limits cannot be NaN or Inf或MemoryError: Unable to allocate 70.8 GiB for...](https://blog.csdn.net/weixin_35757704/article/details/125722271)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]