PyQt5 "xcb" 未找到

PyQt5 "xcb" not found

我使用 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,现在一切正常