This will work in the current Terminal window until you close it, if you want to make this change last across multiple sessions then you need to add the following lines to your ~/.profile file and Quit Terminal.

Code:

PATH=/usr/local/bin/:$PATH
export PATH

Now when next open Terminal you will be able to access Python 2.4 via "python" .