mac10.12 安装 pyqt5.8.2

By | 2017年4月9日

1、下载源码和程序:

PyQt5 :http://www.riverbankcomputing.co.uk/software/pyqt/download5

sip :http://www.riverbankcomputing.co.uk/software/sip/download

Qt5:http://qt-project.org/downloads

2、安装 sip

tar -zxvf sip-4.19.2.tar.gz
cd sip-4.19.2
python configure.py
make
sudo make install

3、安装xcode

app store里面可以下载安装

4、安装Qt5

这步很简单,加载dmg镜像,双击就好

5、安装Pyqt5

tar -zxvf PyQt5_gpl-5.8.2.tar.gz
cd PyQt5_gpl-5.8.2
sudo python configure.py -q /Users/renyiwei/Qt5.8.0/5.8/clang_64/bin/qmake -d /Library/Python/2.7/site-packages/ --sip /System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip --verbose
sudo make
sudo make install

6、问题

问题1:Project ERROR: Could not resolve SDK path for ‘macosx’
解决办法

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer