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
相关推荐
楼兰公子19 分钟前
buildroot 在编译rust时裁剪平台类型数量的方法
开发语言·后端·rust
吴声子夜歌1 小时前
Go——并发编程
开发语言·后端·golang
ooseabiscuit1 小时前
Laravel4.x:现代PHP框架的奠基之作
java·开发语言·php
c1s2d3n4cs2 小时前
Qt模仿nlohmann::json进行序列化和反序列化
开发语言·qt·json
AiTop1002 小时前
Claude Code 推出 Agent View:命令行编程正式进入“多线程并发“时代
开发语言·人工智能·ai·aigc
jf加菲猫2 小时前
第21章 Qt WebEngine
开发语言·c++·qt·ui
码农-阿杰3 小时前
深入理解 synchronized 底层实现:从 HotSpot C++ 源码看对象锁与 Monitor 机制
开发语言·c++·
2401_832298103 小时前
AI智能体监管落地,OpenClaw率先建立行业合规标准
开发语言
geovindu3 小时前
go: Lock/Mutex Pattern
开发语言·后端·设计模式·golang·互斥锁模式
知识分享小能手4 小时前
R语言入门学习教程,从入门到精通,R语言日期和时间序列(6)
开发语言·学习·r语言