Ad

How Can I Install PyQt5 On Mac?

- 1 answer

I am trying to install PyQt5 on my Mac but I do not know how to use it well. I have tried to install sip doing

cd ~/Downloads/sip-4.17
python configure.py

which worked, and then I tried

cd ~/Downloads/PyQt-gpl-5.5.1
python configure.py --qmake /Users/name/Qt/5.5/clang_64/bin/qmake

which returns an error that says

Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip.

How do I fix this error? Did I not install sip?

Ad

Answer

I'm kind of dodging the question, but the simplest way is to install Homebrew, and just run brew install pyqt or brew install pyqt5.

Ad
source: stackoverflow.com
Ad