On 04/01/2009, at 11:47 AM, Gary Church wrote:

Thanks DavidW for the very informative link!

I think my python installations may be a bit "wonky." Here's what I get when I enter:

Macintosh-4:~ gary$ ls -l /Library/Frameworks/Python.framework/ Versions/
total 8
drwxr-xr-x   7 root  wheel  238 Mar 11  2008 2.3
drwxr-xr-x  11 root  wheel  374 Mar 11  2008 2.5
drwxrwxr-x  10 root  wheel  340 Oct  1 16:52 2.6
lrwxr-xr-x   1 root  wheel    3 Dec 28 17:19 Current -> 2.6

that looks ok. It's possible to maintain more than one version simultaneously. Then if you wanted to use v2.5 you just change the Current symlink to that in the Versions dir, as above. Note that each version has its own 3rd party packages directory. I'm using 2.5 so for me it is at /Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/ site-packages/


and what I get when I enter:

Macintosh-4:~ gary$ ls -l /System/Library/Frameworks/ Python.framework/Versions/
total 8
drwxr-xr-x   7 root  wheel  238 Mar 11  2008 2.3
drwxr-xr-x  11 root  wheel  374 Mar 11  2008 2.5
drwxrwxr-x  10 root  wheel  340 Oct  1 16:52 2.6
lrwxr-xr-x   1 root  wheel    3 Dec 28 17:19 Current -> 2.6

This is where the apple distributed directories are.
Not sure why. Perhaps you;ve kept them (up to 2.5.1, I think) as a result of OS upgrades.

I think most macpython users don't use them, unless you're specifically needing to check that something runs on a default sys. setup, preferring, instead, to use those in /Library/Frameworks/ Python.framework/Versions/.

It appears to me that these are identical, though the /System/ Library/ directory is supposed to be where Apple installs it's apps. Some how I must have done something kinda screwy.

Perhaps. I don't think apple has distributed a v2.6 yet.

Also, it's puzzling to me that "Current" in both cases is linked to 2.6, yet when I enter "python" from my home directory, I'm getting Python 2.5.1.

My guess is that it's loading the apple distributed one in System/ Library/Frameworks/Python.framework/Versions/2.5

try, at the unix prompt
% which python

You should also check whether there is a shell variable $PYTHONPATH --
% echo $PYTHONPATH

depending on the results of those queries, you can force it to use a particular one.
Say which shell you're using (bash?, sh? csh?)

David.

Last puzzlement, When I enter "python" from my home directory, how does it know which python to reference? There must be some way it chooses one python over another.

What's the best way to sort my seemingly confused system out?

Thanks much again,
Gary

On Jan 2, 2009, at 8:18 PM, pythonmac-sig-requ...@python.org wrote:
From: DavidW <v...@avatar.com.au>
Date: January 2, 2009 5:12:27 PM PST
To: Gary Church <gary.chur...@comcast.net>
Cc: pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] python version confusion; can someone provide some clarity, please?


Hi Gary - welcome to the list.
This is a frequent question so a search of the archive might help, but here's my explanation:
http://www.avatar.com.au/sonipy/pythonInstall.html

HNY,
David

Gary Church
gary.chur...@comcast.net



_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


________________________________________________
David Worrall.
- Experimental Polymedia:       www.avatar.com.au
- Education for Financial Independence: www.mindthemarkets.com.au
Australian research affiliations:
- Capital Markets Cooperative Research Centre: www.cmcrc.com
- Sonic Communications Research Group:  creative.canberra.edu.au/scrg


________________________________________________
David Worrall.
- Experimental Polymedia:       www.avatar.com.au
- Education for Financial Independence: www.mindthemarkets.com.au
Australian research affiliations:
- Capital Markets Cooperative Research Centre: www.cmcrc.com
- Sonic Communications Research Group:  creative.canberra.edu.au/scrg
- MARCS Auditory Laboratories: marcs.uws.edu.au



_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to