下载sip
https://www.riverbankcomputing.com/software/sip/download
编译安装sip
假设下载路径是~/Download/
cd ~/Download/
tar zxvf sip-xxx.tar.gz
cd sip-xxx
sudo ~/anaconda3/bin/python configure.py
sudo make
sudo make install
下载pyqt4
https://riverbankcomputing.com/software/pyqt/download
编译安装pyqt4
假设下载路径是~/Download/
cd ~/Download/
tar zxvf PyQt4-xxx.tar.gz
$sudo apt-get install libxext6 libxext-dev libqt4-dev libqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-designer qt4-qtconfig
$cd PyQt4-xxx
$sudo ~/anaconda3/bin/python configure.py
$sudo make
$sudo make install
导入包
没报错哈哈