最終解決方案
ubuntu下多python版本pyqt兼容性問題解決
python3.9 -m pip install --upgrade --force-reinstall --prefer-binary pyqt5)
嘗試解決方案一(失敗)
系統默認python版本可以,其他版本不行
sudo apt install pyqt5-dev-tools
嘗試解決方案二(失敗)
一直會卡住
python3.9 -m pip install --upgrade --force-reinstall pyqt5 --verbose
python3.9 -m pip install --upgrade --force-reinstall pyqt5
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting pyqt5Downloading http://mirrors.aliyun.com/pypi/packages/0e/07/c9ed0bd428df6f87183fca565a79fee19fa7c88c7f00a7f011ab4379e77a/PyQt5-5.15.11.tar.gz (3.2 MB)|████████████████████████████████| 3.2 MB 3.0 MB/s Installing build dependencies ... doneGetting requirements to build wheel ... donePreparing wheel metadata ... -