Today I installed PyQt5 on OS X 10.9. Turns out, it's not as straight-forward as one would think.
Using homebrew will not work:
brew install PyQt5 --with-python3
This is because of an unfortunate choice made by the homebrew maintainer regarding Python 3.
So installing from source is the way to go. Following the installing instruction, you would download and install sip first, the install PyQt5 itself.
Except that's not enough. When you run python configure.py, you see this
error:
error: Use the --qmake argument to explicitly specify a working Qt
qmake.
It's pretty self-explanatory. qmake, the build tool for qt is needed here.
Install qt5 with homebrew and proceed:
brew install qt5
Afterwards, you should be able to import PyQt5 in a Python 3 REPL.