Snow Leopard comes packaged with a version of Python 2.6 that is incompatible with many popular libraries, so I've downloaded a version of Python 2.6 from python.org. However, when I type python
at the terminal, I still get the old version of Python. How can I change this?
which python
currently gives me /Library/Frameworks/Python.framework/Versions/2.6/bin/python
ls -l /usr/bin/python
is not a symbolic link to the above (nor to Versions/Current
).
I have a version at /opt/local/bin/python2.6
that I wish to be using.
python --version
to bePython 2.6.1
. What version are you trying to install? I also wonder if somehow changing this would also affect commands like xattr, for whichfile /usr/bin/xattr
yields/usr/bin/xattr: python script text executable
?/Library/Frameworks/Python.framework/Versions/2.6/bin/
listed in your PATH? Like shown byecho $PATH
(If yes, then changing the PATH might suffice for you.)