CentOS安装PyQT5.6
一、安装CentOS7
- 安装完成后进行更新
sudo yum update -y
- 增加epel 源
yum install epel-release -y
二、 安装qt5
- 安装qt5.6
yum install qt5-qtquickcontrols qt5-qtdeclarative-devel -y
三、 安装PyQT5
- 安装编译环境
yum install gcc gcc-c++ python-devel -y
- 下载sip-4.18
wget http://nchc.dl.sourceforge.net/project/pyqt/sip/sip-4.18/sip-4.18.tar.gz
- 装sip-4.18
sudo tar xzvf sip-4.18.tar.gz
sudo cd sip
sudo python configure.py
sudo make
sudo make install
- 下载pyqt5.6
wget http://nchc.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.6/PyQt5_gpl-5.6.tar.gz
- 安装qt5-qtbase-devel
yum install qt5-qtbase-devel -y
- 编译并安装 pyqt
sudo tar xzvf PyQt5_gpl-5.6.tar.gz
sudo cd PyQt5_gpl-5.6
sudo python configure --qmake=/usr/bin/qmake-qt5
sudo make all
sudo make install