ubuntu16.04 安装pyqt4

安装SIP
http://www.riverbankcomputing.co.uk/software/sip/download 下载压缩包 sip-4.19.tar.gz 解压
[plain] view plain copy
tar zxvf sip-4.19.tar.gz -C /home/PyQt
cd /home/PyQt/sip-4.19

sudo python configure.py
sudo make install

安装Qt4依赖的库
[plain] view plain copy
sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer
sudo apt-get install libqwt5-qt4 libqwt5-qt4-dev

安装PyQt4
https://sourceforge.NET/projects/pyqt/files/PyQt4/ 下载压缩包 PyQt4_gpl_x11-4.12.tar.gz 解压
[plain] view plain copy
tar zxvf PyQt4_gpl_x11-4.12.tar.gz -C /home/PyQt
cd /home/PyQt/PyQt4_gpl_x11-4.12

sudo python configure.py
sudo make
sudo make install

posted @ 2017-03-16 08:24  kaleozhou  阅读(5261)  评论(0编辑  收藏  举报