gpt4 book ai didi

python - PyQt5 "xcb"未找到

转载 作者:行者123 更新时间:2023-12-01 03:21:11 24 4
gpt4 key购买 nike

我使用 Qt 设计器创建了一个应用程序。当我启动我的应用程序时,它抛出此错误:

This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Reinstalling the application may fix this problem.
Aborted (core dumped)

抛出错误,然后程序执行此行:

app = QtWidgets.QApplication(sys.argv)

这看起来好像缺少一些依赖项。 如何解决这个问题?

我尝试重新安装libxcb,但这没有帮助。

P.S.:我使用的是 manjaro linux 和 python 3.5.2

P.P.S.:我收到此错误,然后尝试启动 ipython qtconsole

最佳答案

问题在于我使用 sudo 安装了 anaconda,并且使用 sudo 一切正常。我在没有 sudo 的情况下重新安装了 anaconda,现在一切正常

关于python - PyQt5 "xcb"未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41902192/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com