[Pythonmac-SIG] Lost among multiple Python version on my mac
ronaldoussoren at mac.com
Mon Nov 20 11:59:35 CET 2006
There is one problem with your solution: PYTHONPATH doesn't do what you seem to think it does. PYTHONPATH is a list of directories that are added to the python search path (aka sys.path). If you want multiple versions of python on your shell search path you should change PATH, not PYTHONPATH.
On Monday, November 20, 2006, at 11:55AM, "David Worrall" <vip at avatar.com.au> wrote:
>Hi Scott, I regularly use 3 different versions of python. here's how.
>for command-line work:
>/usr/bin/python is the OS version
>/usr/local/bin/python is my next choice
>I have both of these in the shell's $PYTHONPATH variable
>for (non-command-line) MacPythons, ie through IDLE etc, notice that
>/System/Library/Frameworks/Python.framework/Versions/Current is a
>symbolic link to a specific framework version of python
>you can put other versions in the /System/Library/Frameworks/
>and then change the symbolic link (ln -s) of Current to whatever
>version you want.
>And/or add to (or make) the .MacOSX/environment.plist file in your
>to contain this:
>CTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
>and that will be picked up by the IDE you load.
>... Change/add to at will.....
>At least that's how I do it. There's probably someone on this list
>who'll have a more sophisticated way, but quick&dirty gets the job
>hope this helps,
>On 20/11/2006, at 2:09 AM, Piet van Oostrum wrote:
>>>>>>> Scott Harris <scottrharris at gmail.com> (SH) wrote:
>>> SH> I've unintentionally set my /usr/bin/python to a new version
>>> SH> of the original version on OS X 10.4. Is it normally a link to
>>> SH> python in /System/Library/Frameworks/Python.framework/?
>> wildcard python*
>> lrwxr-xr-x 1 root wheel 9 Oct 20 2005 python -> python2.3
>> lrwxr-xr-x 1 root wheel 72 Oct 20 2005 python2.3 -> ../../
>> lrwxr-xr-x 1 root wheel 10 Oct 20 2005 pythonw -> pythonw2.3
>> -rwxr-xr-x 1 root wheel 13728 Mar 21 2005 pythonw2.3
>>> SH> Also, what's the "best" way to deal with multiple versions on
>>> SH> on one mac? The binary downloads of 2.4 and 2.4 go in /Library/
>>> SH> Frameworks, but the versions I build from source go into /usr/
>> /Library/Frameworks is the way to go, and you can make symlinks from
>> To make from source:
>> MACOSX_DEPLOYMENT_TARGET=10.4 ./configure --enable-framework
>> sudo make frameworkinstall
>> Piet van Oostrum <piet at cs.uu.nl>
>> URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
>> Private email: piet at vanoostrum.org
>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
>experimental polymedia: www.avatar.com.au
>Sonic Communications Research Group,
>University of Canberra: www.canberra.edu.au
>Pythonmac-SIG maillist - Pythonmac-SIG at python.org
More information about the Pythonmac-SIG