Pycharm运行时出现Could not load the Qt platform plugin “xcb“问题
Ubuntu20.04在Pycharm运行时出现Could not load the Qt platform plugin "xcb"问题
用mmclassification跑test.py脚本,绘制预测图时出现以下问题:
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “/home/taoyang/Software/anaconda3/envs/py37/lib/python3.7/site-packages/cv2/qt/plugins” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb, eglfs, minimal, minimalegl, offscreen, vnc, webgl.
解决方法如下:
在文件开头输入如下代码,其中的路径为报错代码中的路径后再加一个/platforms
envpath = '/home/taoyang/Software/anaconda3/envs/py37/lib/python3.7/site-packages/cv2/qt/plugins/platforms'
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = envpath
但是有点治标不治本,后面在运行labelme时又会报错,卸载QT5也没用,经过一番寻找终于找到解决方案,就是降低opencv版本:
pip install opencv-python==4.1.2.30
Pycharm运行时出现Could not load the Qt platform plugin “xcb“问题相关推荐
- 【Qt】Qt发布程序时,报错: could not find or load the Qt platform plugin xcb
问题描述 Qt程序在发布时,报错: This application failed to start because it could not find or load the Qt platform ...
- 【Qt】Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题
1.问题描述 在ubuntu18.04中第一次安装QT5,运行时报错 qtcreator.sh qt.qpa.plugin: Could not load the Qt platform plugin ...
- Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题
Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin "xcb"问题 问题描述 定位问题 解决 ...
- uBuntu20.04安装Qt5.15.2出现qt.qpa.plugin: Could not load the Qt platform plugin “xcb“的问题解决
由于Qt6.22太新,我不得不重新安装了Qt,同时安装了Qt6.22和Qt5.15.2,安装完毕后使用Qt6.22是没有问题的,但使用Qt5.15.2运行程序时,提示如下错误 qt.qpa.plugi ...
- Ubuntu20.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“ 问题
问题描述 python调用matplotlib.pyplot库进行图形绘制时弹出错误提示: qt.qpa.plugin: Could not load the Qt platform plugin & ...
- Ubuntu16.04下Python程序出现错误qt.qpa.plugin: Could not load the Qt platform plugin xcb解决方法
问题描述 我在运行一个使用Pyqt5库的Python程序时,出现报错: qt.qpa.plugin: Could not load the Qt platform plugin "xcb&q ...
- Linux下解决发布Qt程序报错:it could not find or load the Qt platform plugin “xcb” in “”
简述 用Qt5.8版本在ubuntu16.04版本下编写Qt应用程序,生成release版本并打包,到另一台无Qt环境的linux系统中运行. 网上通常是按以下几个步骤进行: 1.生成release程 ...
- qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found. This appl
在ubuntu上使用qt出现报错:qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" ...
- 出现“qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ‘ ’even though it was found
出现"qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in ' 'even though it wa ...
最新文章
- getElementsByTagName
- 高并发下的接口幂等性解决方案!
- Linux CenOS7下安装ActivetMQ
- c#多维数组的建立及操作 总结
- lodop 小票排版_lodop+art-template实现web端漂亮的小票样式打印
- datagrid页面获取表单一条数据的例子
- SQLAlchemy Mapping Class Inheritance Hierarchies
- React Redux: 从文档看源码 - Components篇
- C#积木游戏(改编自DevExpress GridTetris)
- 不懂代码也想学会深度学习?这本书告诉你真的很简单
- webpack打包、js处理兼容性、代码压缩问题Uncaught SyntaxError: Cannot use import statement outside a module (at index
- vue2 与 vue3 生命周期对比
- MacOS系统升级与MacOS13版本
- permission denied (publickey)问题的解决
- php图片上传为base64,php实现base64图片上传方式实例代码
- yolov5训练常见错误解决办法
- 网络电视测试软件,电视屏幕检测(三款智能电视屏幕检测软件)
- win10笔记本外接屏幕不清晰的解决方法
- Redis压测工具(redis-benchmark)
- 大数据技术(林子雨版)——期末复习知识点
热门文章
- Lending Club Data For Scorecard Development in SAS Enterpise Miner
- input上传图片并同步获取图片分辨率
- 【图像分割】UNet 和 UNet++
- java程序员需看的13本书
- 树莓派4B系列教程三 :优化配置
- java并发包CountDownLatch的用法
- 热敏打印计算机,58mm USB 热敏打印机(写字库源代码+字库软件+USB 电脑打印机模式等)...
- 24届近5年燕山大学自动化考研院校分析
- 迷你高尔夫球场:伦敦休闲旅游好去处
- 为centos 7 安装图形化桌面环境