UBuntu install PyQt4


PyQt4使用二进制方式安装是最佳选择

sudo apt-get install libxext6 libxext-dev libqt4-dev libqt4-gui libqt4-sql
sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer

python2

sudo apt-get install python-qt4
sudo apt-get install python-qt4-*
sudo apt-get install python-qscintilla2

python3

sudo apt-get install python3-pyqt4
sudo apt-get install python3-pyqt4.qsci
sudo apt-get install python3-pyqt4.qtsql
sudo apt-get install python3-pyqt4.phonon