[PyQt] PyQt4 installed into different dir than sip and not importable on MacOSX

Phil Thompson phil at riverbankcomputing.com
Fri Mar 20 21:39:10 GMT 2015


On 20/03/2015 8:44 pm, Andreas Pakulat wrote:
> Hi,
> 
> just installed the latest PyQt4 release (4.11.3) on MacOSX and could 
> not
> impot PyQt4 afterwards in python. Turns out it decided to place itself 
> into
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages,
> however that directory is not in sys.path after starting Python.
> 
> sip on the other hand (installed just before, version is 4.16.6) put 
> itself
> into /Library/Python/2.7/site-packages and that is part of sys.path.
> 
> I guess this isn't intended? Where does PyQt gather the default
> installation directory from?
> 
> Andreas
> 
> PS: Passing -d /Library/Python/2.7/site-packages worked fine of course.

The /System/... location is for python that ships with OS X. The 
/Library/... location is for the python from python.org.

Are you sure you used the same python throughout?

Phil


More information about the PyQt mailing list