数据分析模块(异常与处理)


 

分类 异常信息 解析 解决方案
matplotlib FigureCanvasAgg is non-interactive,and thus cannot be shown plt.shown() matplotlib 模块没能启动交互式后端

执行可视化之前,使用魔法指令

%matplotlib inline

matplotlib module 'backend_interagg' has no attribute 'FigureCanvas' matplotlib 后端配置,非交互式的。或者matplotlib版本较低

1 先升级matplotlib到最新版本

2 代码中,指定一个交互后端,常用的有Agg,TkAgg,Qt5Agg,GTK3Agg, 

import matplotlib

matplotlib.use(***) 

import matplotlib.pyplot as plt

       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
posted @ 2024-06-26 19:08  林山风火  阅读(10)  评论(0编辑  收藏  举报