Installing Pyqt4 with brew
If you want to use PyQt4 with Python 3, you should use this command to tell homebrew:
brew install PyQt --with-python3
Jose Maria de la Torre
Updated on June 13, 2022Comments
-
Jose Maria de la Torre almost 2 years
Im working with brew to install PyQt on python3 but I cant seem to get it to work
I ran
brew install pyqt
andbrew doctor
to fix all possible errors but still when running my code I keep gettingImportError: No module named 'PyQt4'
If I run
echo $PATH
im getting/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
Can someone please guide me on fixing this problem? I am also using PyCharm but I still get the same error if I run in terminal
python3
thenimport pyqt
please help me :( im really new in this but I tried everything that I could find in google
thanks!
PD: Running
brew test pyqt
does not bring an error but it does not open. Also I installed python3 with brew and im currently running it from/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/bin/python3.4