Qt报错解决办法

anaconda环境安装qt报错解决办法

报错:thresholdGap: 20 pointsShape: 164142

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "/home/tianhailong/anaconda3/envs/edge_algorithm/lib/python3.8/site-packages/cv2/qt/plugins"

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.

解决办法:

python 复制代码
udo apt-get install libxcb-xinerama0
pip install PyQt5 --force-reinstall
export QT_QPA_PLATFORM=xcb
set QT_QPA_PLATFORM=xcb
相关推荐
源代码•宸几秒前
Golang原理剖析(channel源码分析)
开发语言·后端·golang·select·channel·hchan·sudog
liuyunshengsir2 分钟前
golang Gin 框架下的大数据量 CSV 流式下载
开发语言·golang·gin
BlockChain8883 分钟前
MPC 钱包实战(三):Rust MPC Node + Java 调度层 + ETH 实际转账(可运行)
java·开发语言·rust
吉吉613 分钟前
在 Windows 和 Linux 的 VSCode 中配置 PHP Debug
开发语言·php
蜜汁小强4 分钟前
macOS 上升级到 python 3.12
开发语言·python·macos
Remember_9935 分钟前
【数据结构】Java集合核心:线性表、List接口、ArrayList与LinkedList深度解析
java·开发语言·数据结构·算法·leetcode·list
小旭95275 分钟前
【Java 面试高频考点】finally 与 return 执行顺序 解析
java·开发语言·jvm·面试·intellij-idea
hixiong1235 分钟前
C# OpenVinoSharp部署Yolo26模型进行推理
开发语言·c#·openvino·yolo26
不会c嘎嘎13 分钟前
QT中的各种对话框
开发语言·qt
陌路2013 分钟前
RPC分布式通信(2)---四种典型式线程池(1)
java·开发语言·c++