安装SIP在https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.12/sip-4.19.12.tar.gz/download?use_mirror=iweb&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fpyqt%2Ffiles%2Fsip%2Fsip-4.19.12%2Fsip-4.19.12.tar.gz%2Fdownload%3Fuse_mirror%3Dautoselect&use_mirror=iweb 网站下载SIP,并执行如下命令:
sudo apt-get install python-dev
tar xvf sip-4.19.12.tar.gz cd /home/annie/sip-4.19.12sudo python configure.pysudo make install
如果make命令执行时有error,Python.h 未找到错误,说明没有安装对应的Python版本的dev包,需键入以下命令:
sudo apt-get install python2.7-dev
注意要根据自己python的版本来安装相应的dev
下载安装Qt4依赖的库
sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer libqwt5-qt4 libqwt5-qt4-dev
安装PyQt4从https://www.riverbankcomputing.com/software/pyqt/download下载压缩包 PyQt4_gpl_x11-4.12.1.tar.gz 解压
tar xvf PyQt4_gpl_x11-4.12.1.tar.gz
cd /home/annie/PyQt4_gpl_x11-4.12.1sudo python configure.pysudo makesudo make install
安装完成! 输入 palmrungui
|