1.首先安装QT,同时要有gcc
2.然后就是先安装sip,然后安装pyqt4
python configure.py -q /usr/bin/qmake-4.8 -d /Library/Python/3.4/site-packages/ --sip /System/Library/Frameworks/Python.framework/Versions/3.4/bin/sip