栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

【报错解决方案】application failed to start because it could not find or load the Qt platform plugin “xcb“

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【报错解决方案】application failed to start because it could not find or load the Qt platform plugin “xcb“

0x00 问题描述

今天在跑程序的时候,突然曝出了下面的错误,

This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Reinstalling the application may fix this problem.
detect_evaluation-Dataset.sh: line 21: 17306 Aborted                 (core dumped)

在网上找了好多教程,其中最经典的就是盼小辉的,但是却解决不了我的问题。

0x01 解决思路
  • 要想解决这个问题,就要分析为什么我用盼小辉的那个解决方法为什么不成功?
    细细分析发现两者的区别,他的是安装了QT程序,而我只是用到了qt的一个python库。因此我重新安装一下qt包就解决了
0x02 具体步骤
  1. 卸载python环境中的qt包

    pip uninstall qt
    
  2. 重新安装qt包

    pip install qt
    
0x03 一些闲话

本人创建了一个公众号,分享科研路上的小问题,新发现,欢迎关注公众号,给我留言!!!
一起奋发向上,攻克难题吧~~

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/460868.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号