On a native Mac OS X install, I see Python binary at /usr/bin at version 2.6
Recently I installed Python 2.7.2 from the official binaries and it installed it at /usr/local/bin
What path of the Python interpreter should I give in my #! which will be standardized across all platforms?
I am assuming it could be /usr/bin so that I may have to symlink /usr/bin/python to /usr/local/bin/python but I just wanted to sure before I do this
Nope. You would use env to find the python executable in $PATH and run it as appropriate.
#!/usr/bin/env python
print 'Hi mom!'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With