[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt4 installed into different dir than sip and not importable on MacOSX
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2015-03-20 21:39:10
Message-ID: d22c27a8d6682bf165e5edef6d3c9eca () riverbankcomputing ! com
[Download RAW message or body]

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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic