On doing 'which Python' it says '/usr/local/bin/python'. But when I go there through 'finder' there's nothing there. I can see /Library/Python through finder and on clicking Library/Python I see 2.3, 2.5, 2.6, 2.7.
The default Python currently is 2.7which I can see with --version. But all it has is /site-packages. How is this possible? I am not sure if it is the one that came with the OS or if it was installed later by someone. I am so so confused.
OSX 10.8.4
What you have found is just a symlink to the python binary, try doing:
ls -l /usr/local/bin/python
this will show you where this simlink is pointing to. For example I get (see the end of the line):
lrwxr-xr-x 1 yaser admin 33 Mar 30 15:59 /usr/local/bin/python -> ../Cellar/python/2.7.3/bin/python
Normally it is located at:
/Library/Frameworks/Python.framework/Versions/2.7/