Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing PyQt4 on Mac OSx Mavericks?

http://www.riverbankcomputing.com/software/pyqt/download

I tried many solutions on internet including

brew install qt
brew install sip
brew install pyqt

to successfully install it on osx. I am using PyCharm IDE to python development and want to install it for python 3.

I just cannot download pyqt4 libraries to mac, is there some specific steps i need to follow? Easy way? Hard way? anything...

Sorry, I am new to mac world.

like image 516
Python Avatar asked Sep 24 '14 16:09

Python


People also ask

Does PyQt work on Mac?

Desktop applications made with PyQt are cross platform, they will work on Microsoft Windows, Apple Mac OS X and Linux computers (including Raspberry Pi).

Is PyQt4 compatible with Python 3?

PyQt4 is a comprehensive set of Python bindings for Digia's Qt cross platform GUI toolkit. PyQt4 supports Python v2 and v3.


1 Answers

You can install it with homebrew using the --with-python3 flag:

unset PYTHONPATH
brew install sip --with-python3
brew install pyqt --with-python3

And relink the site packages if necessary.

like image 124
shrx Avatar answered Oct 01 '22 21:10

shrx