1、tar -xvf python-2.6.4.tar
2、Cd python-2.6.4
3、./configure --prefix=/home/tmxu/local/python
4、make && make install
5、将python的路径加入.bash_profile中的PATH.,并执行source .bash_profile使配置立即生效
PATH=$PATH:/home/tmxu/local/python/bin export PATH=/home/tmxu/local/python/bin/:$PATH