首页 > 其他分享 >用matplot和seaborn作图,出现This application failed to start because not Qt platform plugin could be initia

用matplot和seaborn作图,出现This application failed to start because not Qt platform plugin could be initia

时间:2023-11-30 19:56:38浏览次数:31  
标签:matplot because seaborn 作图 matplotlib application 报错

用matplotlib和seaborn作图,出现这样的弹窗:

 尝试过增加环境变量的方法没有解决。使用了一种临时的解决方法:

import matplotlib
matplotlib.use('TKAgg')

如果不需要图形化界面,只需要运行后的参数可以使用:

import matplotlib
matplotlib.use('Agg')

 

标签:matplot,because,seaborn,作图,matplotlib,application,报错
From: https://www.cnblogs.com/huangrenjie/p/17868127.html

相关文章