use alias

vi ~/.bash_profile
alias python='/usr/bin/python26'
alias easy_install='/usr/bin/easy_install'

原文地址:https://www.cnblogs.com/lexus/p/1739147.html