安装python2.7

1查看当前python版本

python-V

2下载新版本python

wgethttp://python.org/ftp/python/2.7.5/Python-2.7.5.tgz

3解压

tarxvfPython-2.7.5.tgz

4安装

cdPython-2.7.5

./configure

makeall

makeinstall

5清理

makeclean

makedistclean

6挂链接

rm/usr/bin/python

ln-s/usr/local/bin/python2.7/usr/bin/python

7解决yum问题

vim/usr/bin/yum

相关推荐