A simple guide to install PyQt5 on Mac OS X 10.11 and use python 3.5 on a virtualenv.
- xcode latest
- python 3.5.1
- Qt libraries 5.6.0
- SIP 4.17
- PyQt 5.5.1
- install xcode
- install the Command Line Tools (open Xcode > Preferences > Downloads)
- install Qt libraries (qt-opensource-mac-x64-clang-5.2.1.dmg)
- install python 3.4
- create a virtual env (i.e. ~/.env/ariane_mail)
- unzip and compile SIP and PyQt
cd sip/
python configure.py -d ~/.pyenv/versions/3.5.1/lib/python3.5/site-packages/ --arch x86_64
make
sudo make install
sudo make clean
cd ../PyQt/
python configure.py --destdir ~/.pyenv/versions/3.5.1/lib/python3.5/site-packages --qmake ~/Qt5.6.0/5.6/clang_64/bin/qmake
make
sudo make install
sudo make clean