ubuntu下python版本升级导致pyqt不能正常运行解决
最终解决方案
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 ... -