[Pythonmac-SIG] which directory for site-packages

Hunt Culver hculver at cfl.rr.com
Sun Nov 16 19:38:32 CET 2008


Thanks, David,

I tried your idea and it worked.  I delete the Python.framework alias  
at /Library/Frameworks/ , which pointed to /System, and reinstalled  
MacPython.  I skipped over step 4 at the python.org website and after  
a few other nits, I managed to get my own scripts up and running from  
site-packages.

So, any ideas on how to change the instructions at
http://wiki.python.org/moin/MacPython/Leopard, which seem to be in  
error - at least in my case.

Later,
Hunt



On Nov 15, 2008, at 5:15 PM, David  wrote:

> On 15-Nov-08, at 1:15 PM, Hunt  wrote:
>
>> Then from within python I printed all the the sys.paths and  
>> sys.prefix.  I tried to create a site-packages sub directory in
>> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5 , but python doesn't seem to find it automatically.
>
> This suggests you're actually not using the MacPython you installed.  
> The Python.org build installs everything into /Library. /System/ 
> Library contains the Python that ships with OS X.
>
> To summarize: /System/Library/Frameworks/Python.framework and / 
> Library/Frameworks/Python.framework are two different Python  
> installations. You seem to be running the latter while attempting to  
> run the former.
>
> David



More information about the Pythonmac-SIG mailing list