Install pyQT on OSX for python 3.2

NOTE. I am using python 3

I am trying to install pyQT on a Mac OsX Mountain Lion, and so far I have not had much success. I am new to this, so I don’t even want to think about manual configuration.

Gets an Im error, which I believe means that there is no easy_install script to install pyQT. Ive also tried macports, however pyQT is not supported for python3. Does anyone have some simple solution to install pyQT on osX?

Download http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.9.5/PyQt-x11-gpl-4.9.5.tar.gz Processing PyQt-x11-gpl-4.9.5.tar.gz Error: Could not find installation script in / tmp / easy _install-ZiD0mx / PyQt-x11-gpl-4.9.5.tar.gz new-host-6: ~ Eric $

macports just gives the error "port setting not found"

+4
source share
1 answer

I don't have specific instructions, but here is an overview of what you need

Install Qt: either through a macro, homebrew, source or a binary assembly .

Install sip from source

python configure.py --arch=x86_64 make && make install 

Install PyQt4 from source . You need a mac source. Not X11 (linux)

 python configure.py make && make install 

PyQt4 should find sip and your Qt installation.

You cannot just install it from easy_install, because it is a bit more active. PyQt depends on SIP and Qt setup for communication. I recommend homebrew on top of macports to install the package. You can use it to get Qt: brew install qt

+6
source

Source: https://habr.com/ru/post/1447645/


All Articles