UOS环境python3.7及pyqt5安装

解决方案尝试
先安装pyqt5依赖项:
1、更新python3.7
sudo add-apt-repository ppadeadsnakes/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 2sudo update-alternatives --config python3
sudo apt-get install python3.7-dev
sudo apt-get install libhdf5-dev
2、更新 pip3Q:
sudo python3 -m pip install --upgrade pip
3、安装pyqt5Q的依赖项
sudo apt install pygt5
sudo apt install gt5-default gttools5-dev-tools
4、最后再安装pyqt5
sudo pip3 install pyqt5sudo pip3 install pygt5-tools

你可能感兴趣的:(python,linux,开发语言)