一、问题描述

具体报错如下:

qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “*************/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

后来通过debug,定位到是opencv中使用cv2.imshow()的问题,于是LZ猜测可能是opencv的问题,每次找bug都像在破案一样。

二、解决方法

说实话这个问题LZ之前没有碰到过,也只有满世界百度和google,但是发现方法都不work,后面偶然间发现一个博客说可能是opencv的一个bug,于是LZ就重新pip install了opencv

(CenterTrack) root@70e7a5ca0a8d:/# pip install opencv-python==4.1.0.25
Collecting opencv-python==4.1.0.25Downloading opencv_python-4.1.0.25-cp36-cp36m-manylinux1_x86_64.whl (26.6 MB)|################################| 26.6 MB 146 kB/s
Requirement already satisfied: numpy>=1.11.3 in /root/anaconda3/envs/CenterTrack/lib/python3.6/site-packages (from opencv-python==4.1.0.25) (1.19.2)
Installing collected packages: opencv-pythonAttempting uninstall: opencv-pythonFound existing installation: opencv-python 4.4.0.44Uninstalling opencv-python-4.4.0.44:Successfully uninstalled opencv-python-4.4.0.44

结果问题解决,其他安装依赖库的方法也都尝试了,但是并没有解决LZ的问题,所以就不写在博客里了,并且每个人遇到相同的报错,原因也有可能不一样,所以多多尝试才可以啊。

LZ现在的梦想就是身体健康,万事如意,哈哈哈哈哈,不知道为啥突然想说这个。。。

三、参考链接:

https://stackoverflow.com/questions/60032540/opencv-cv2-imshow-is-not-working-because-of-the-qt

OpenCV:qt.qpa.plugin: Could not load the Qt platform plugin “xcb”相关推荐

  1. 解决Ubuntu系统安装QT出错的问题:qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it

    最近新入手的笔记本无法安装Ubuntu系统,无奈只能通过VirtualBox安装Ubuntu16.04,但是发现安装最新版本的QT5.12.10时候无法启动QtCreator程序,通过命令行运行发现如 ...

  2. 出现“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 ...

  3. 【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 ...

  4. 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"问题 问题描述 定位问题 解决 ...

  5. 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 "" ...

  6. 出现 qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in 的解决方法

    目录 1. 问题所示 2. 解决方法 3. 补充 1. 问题所示 出现如下问题: (py17)kkjz@kkjz-ThinkStation-P330:yolov5$python main.py QOb ...

  7. 解决qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.

    项目场景: 在使用pyqt5出现问题,让人真的很头疼哇 问题描述 具体问题如下: qt.qpa.plugin: Could not load the Qt platform plugin " ...

  8. 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 & ...

  9. 关于qt.qpa.plugin: Could not load the Qt platform plugin “xcb“的问题

    今天在运行代码的时候出现了以下错误,经查找资料,找到了解决方法. 错误如下: QFactoryLoader::QFactoryLoader() checking directory path &quo ...

最新文章

  1. 论外部调用代理应该属于那一层
  2. 如何用计算机弹出ink sans,INKSANS模拟器PC
  3. Java对象序列化详解
  4. 解决部分控件,自动获取焦点的情况
  5. Python自动对Word文件中Python程序进行着色
  6. C# 数组、ArrayList、List、Dictionary的用法与区别
  7. React-flux杂记
  8. xadmin获取mysql_Django2集成xadmin详解-5-获取登录用户信息并填充相应Model字段
  9. 利用Outlook应用程序接口执行Shellcode
  10. html5视频播放器 二 (功能实现及播放优化)
  11. 捷联惯导系统学习4.2(捷联惯导误差方程)
  12. ENVI计算不同轨道号范围中的平均高程
  13. 关于unity导出FBX文件
  14. 公司开发的APP,如何生成一个二维码,供客户下载使用
  15. android+单机button+设置背景图片,button设置点击更改背景图片
  16. 旧路由器改装无线打印服务器,旧路由器改wifi放大器详细教程【图】
  17. CCF-20170902-公共钥匙盒(30分)
  18. 大一新生常见心理难题与解答
  19. IT忍者神龟之JMeter-使用Badboy录制Web测试脚本
  20. 才正式做了新媒体运营

热门文章

  1. 【【51单片机红外遥控小风车】】
  2. 3.5寸硬盘参数表-PMR/SMR/TDMR-2018-10-24
  3. 点云添加高斯噪声的C++实现
  4. java repaint 没反应_java - 为什么repaint()在我的JPanel上不起作用? - 堆栈内存溢出...
  5. [Sqoop]Sqoop使用
  6. 网站加强用户停留时间的方法
  7. 使用node.js搭建简单服务器
  8. 利用Telnet登录qq邮箱发送邮件——SMTP协议学习
  9. 相联存储器的工作原理(按内容访存,cache、快表中应用)
  10. 基于C++的餐厅管理程序的设计与实现