在Ubuntu20.04系統中,配置Python+PyQt開發環境時,遇到的主要問題及解決方法如下:
1、在Ubuntu20.04系統中雖然已經內置了Python3,但未安裝pip,因此不能通過其安裝第三方庫,安裝pip的方法: sudo apt install python3-pip 2、安裝PyQt庫的方法: pip3 install PyQt5 3、運行PyQt程序時提示錯誤:“qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.”,解決方法: sudo apt install libxcb-xinerama0
|