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
相关推荐
黄雪超6 小时前
JVM——函数式语法糖:如何使用Function、Stream来编写函数式程序?
java·开发语言·jvm
ThetaarSofVenice7 小时前
对象的finalization机制Test
java·开发语言·jvm
思则变7 小时前
[Pytest] [Part 2]增加 log功能
开发语言·python·pytest
lijingguang7 小时前
在C#中根据URL下载文件并保存到本地,可以使用以下方法(推荐使用现代异步方式)
开发语言·c#
¥-oriented7 小时前
【C#中路径相关的概念】
开发语言·c#
CoderCodingNo8 小时前
【GESP】C++四级考试大纲知识点梳理, (7) 排序算法基本概念
开发语言·c++·排序算法
恋猫de小郭8 小时前
Meta 宣布加入 Kotlin 基金会,将为 Kotlin 和 Android 生态提供全新支持
android·开发语言·ios·kotlin
JosieBook8 小时前
【Java编程动手学】使用IDEA创建第一个HelloJava程序
java·开发语言·intellij-idea
Thomas_YXQ8 小时前
Unity3D DOTS场景流式加载技术
java·开发语言·unity
旷世奇才李先生8 小时前
Ruby 安装使用教程
开发语言·后端·ruby