2017-01-27 52 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,現在一切正常