From SnOwy - Ed's Wiki Notebook
Tin:bin eddiema$ ls -la | grep python
lrwxr-xr-x 1 root wheel 9 17 Mar 2009 _python_2_3_ -> python2.3
-rwxr-xr-x 2 root wheel 86000 8 Jul 2009 python
-rwxr-xr-x 5 root wheel 925 8 Jul 2009 python-config
lrwxr-xr-x 1 root wheel 75 7 Feb 16:58 python2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
lrwxr-xr-x 1 root wheel 82 7 Feb 16:58 python2.5-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config
lrwxr-xr-x 1 root wheel 75 7 Feb 16:58 python2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
lrwxr-xr-x 1 root wheel 82 7 Feb 16:58 python2.6-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
-rwxr-xr-x 2 root wheel 86000 8 Jul 2009 pythonw
lrwxr-xr-x 1 root wheel 76 7 Feb 16:58 pythonw2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5
lrwxr-xr-x 1 root wheel 76 7 Feb 16:58 pythonw2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6
Tin:bin eddiema$
Tin:~ eddiema$ cd /usr/bin
Tin:bin eddiema$ mv python _python
mv: rename python to _python: Permission denied
Tin:bin eddiema$ sudo mv python _python
Password:
Tin:bin eddiema$ sudo ln -s /Library/Frameworks/Python.framework/Versions/2.6/bin/python python
Tin:bin eddiema$ ./python
Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Tin:bin eddiema$ ./pythonw
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D
Tin:bin eddiema$ ./python
Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Tin:bin eddiema$ mv pythonw _pythonw
mv: rename pythonw to _pythonw: Permission denied
Tin:bin eddiema$ sudo mv pythonw _pythonw
Tin:bin eddiema$ sudo ln -s /Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw pythonw
Tin:bin eddiema$ sudo mv python2.6 _python2.6
Tin:bin eddiema$ sudo ln -s /Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 python2.6
Tin:bin eddiema$
Tin:bin eddiema$ sudo mv _python __python
Tin:bin eddiema$ sudo mv python _python
Tin:bin eddiema$ sudo ln -s python2.6 python
Tin:bin eddiema$ ls -la | grep python
-rwxr-xr-x 2 root wheel 86000 8 Jul 2009 __python
-rwxr-xr-x 2 root wheel 86000 11 Feb 03:58 _python
lrwxr-xr-x 1 root wheel 75 7 Feb 16:58 _python2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
lrwxr-xr-x 1 root wheel 9 17 Mar 2009 _python_2_3_ -> python2.3
-rwxr-xr-x 2 root wheel 86000 8 Jul 2009 _pythonw
lrwxr-xr-x 1 root wheel 9 6 Apr 09:25 python -> python2.6
-rwxr-xr-x 5 root wheel 925 8 Jul 2009 python-config
lrwxr-xr-x 1 root wheel 75 7 Feb 16:58 python2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
lrwxr-xr-x 1 root wheel 82 7 Feb 16:58 python2.5-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config
lrwxr-xr-x 1 root wheel 63 29 Mar 10:58 python2.6 -> /Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
lrwxr-xr-x 1 root wheel 82 7 Feb 16:58 python2.6-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
-rwxr-xr-x 2 root wheel 86000 11 Feb 03:58 pythonw
lrwxr-xr-x 1 root wheel 76 7 Feb 16:58 pythonw2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5
lrwxr-xr-x 1 root wheel 76 7 Feb 16:58 pythonw2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6