python-qt學習(安裝及配置)

環境

ubuntu16.04+pycharm2019

安裝

pip3 install pyside2 -i https://pypi.douban.com/simple/
安裝完沒找到,直接在pycharm設置裏面裝的

運行問題

1、錯誤1

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

解決:
安裝libxcb-xinerama0
參考:https://blog.csdn.net/zhanghm1995/article/details/106474505?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章