Python Installation

blackoutspy

Registered
I know what the subject says, but i'm pretty sure this is a *nix question. Basically, i installed the latest release of python because i need to use its sorted() function. From the command line when i type python scriptname.py it uses the older version of python. I order to use the newer one i have to type /usr/local/bin/python2.4 scriptname.py. Is there anyway i can make sure that when i type python it uses the 2.4 verion as opposed to the older one?
 
Simply put the path to the newer python before the path to /usr/bin (or wherever the older python is located) in your .cshrc, .bash-profile, or whatever shell config file you use.

You can also try aliasing "python" to "/usr/local/bin/python" or whatever the path to the newer python is.
 
Back
Top