JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

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

发布时间 2023-11-30 19:49:47作者: 以后指定是大牛

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

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

import matplotlib
matplotlib.use('TKAgg')

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

import matplotlib
matplotlib.use('Agg')

 

    本栏目推荐文章
  • 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
  • application.yml
  • One Dynamics One Platform : Analytics - Delta Lake Synapse Link
  • One Dynamics One Platform - Dataverse C# Plugin for Dynamics 365 F&O
  • Dynamics 365 Finance Operations Data Event Catalog - Power Platform Convergence
  • 基于正则化的图自编码器在推荐算法中的应用 Application of graph auto-encoders based on regularization in recommendation algorithms
  • 通过ssh在服务器上使用mujoco,报错Failed to initialize GLFW;ERROR: could not initialize GLFW
  • 【Application Insights】使用Powershell命令向Application Insgihts发送测试数据
  • Cannot re-initialize CUDA in forked subprocess.
  • kafka:ERROR Shutdown broker because all log dirs(Windows)
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们