Reputation: 651
I think I have some problems with the python installation on OS X 10.8. Here's what I get after which
command
$ which -a python
/usr/local/bin/python
/usr/bin/python
/usr/local/bin/python
Then I have
$ /usr/local/bin/python --version
Python 2.7.5
While
/usr/bin/python --version
Python 2.5.6
I have homebrew installed. The problem is that a program (Tex Live Utility) crashes because it needs Python 2.6+ and uses /usr/bin/python
as path. My question is, which is the python version that comes with OS X? How do I fix this problem without messing up Apple's Python installation?
By the way, in the /usr/bin folder I have the following
$ ls py*
pydoc python2.5 pythonw
pydoc2.5 python2.5-config pythonw2.5
pydoc2.6 python2.6 pythonw2.6
pydoc2.7 python2.6-config pythonw2.7
python python2.7
python-config python2.7-config
Upvotes: 0
Views: 620
Reputation: 38207
/usr/bin/python
is the Python that comes with OS X./usr/local/bin/python
is the Homebrew version.This also explains why the 2nd one is newer. Also, if you have Homebrew installed, everything under /usr/local
has been installed by Homebrew (normally).
P.S. I'm a little bit suspicious as to why your OS X Python is at version 2.6.5; in OS X 10.8, the Python that comes bundled should be 2.7.2 as is the case on my system:
$ /usr/bin/python --version
Python 2.7.2
Upvotes: 2