2017-01-27 114 views
1

我用Qt设计器创建了一个应用程序。当我启动我的应用程序,则抛出此错误:PyQt5“xcb”找不到

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

+0

这个命令的输出是什么:ldd /usr/lib/qt/plugins/platforms/libqxcb.so – eyllanesc

+0

第二个命令是什么? – eyllanesc

+0

@eyllanesc,[这里](http://pastebin.com/raw/v167uWsK)是'ldd/usr/lib/qt/plugins/platforms/libqxcb.so'的输出 – KgOfHedgehogs

回答

1

的问题是在我安装使用sudo蟒蛇,并使用sudo一切工作正常。我重新安装anaconda没有sudo,现在一切正常