A simple guide to install PyQt5 on Mac OS X and use python 3.4 on a virtualenv.
- python 3.4
- Qt5
- SIP
- PyQt
- install xcode
- install the Command Line Tools (open Xcode > Preferences > Downloads)
- install Qt (brew install qt5)
- install python 3.4
- create a virtual env (virtualenv env --no-site-packages && source env/binactivate)
- unzip and compile SIP and PyQt
cd /var/tmp
cp /Users/Marcelo/Downloads/PyQt-gpl-5.2.1.tar.gz .
cp /Users/Marcelo/Downloads/sip-4.15.5.tar.gz .
tar xvf PyQt-gpl-5.2.1.tar.gz
tar xvf sip-4.15.5.tar.gz
cd sip-4.15.5/
python3 configure.py -d ../env/lib/python3.4/site-packages --arch x86_64
make
sudo make install
sudo make clean
cd ../PyQt-gpl-5.2.1/
python3 configure.py --destdir ../env/lib/python3.4/site-packages --qmake /usr/local/opt/qt5/bin/qmake
make
make install
make clean
cd ..
python -c "import PyQt5"