1、更新python3.7
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get install python3.7
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
sudo update-alternatives --config python3
sudo apt-get install python3.7-dev
sudo apt-get install libhdf5-dev
2、更新pip3:
sudo python3 -m pip install --upgrade pip -i http://pypi.douban.com/simple/
3、安装pyqt5的依赖项
sudo apt install pyqt5*
sudo apt install qt5-default qttools5-dev-tools
4、安装pyqt5
sudo python3 -m pip install pyqt5 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
sudo python3 -m pip install pyqt5-tools -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
sudo python3 -m pip install opencv-python -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
参考:
/lm_is_dc/article/details/124819166
/
/lhzhqq/article/details/125870296
/m0_59496782/article/details/122833159
/ZHUO__zhuo/article/details/124183843