标签:http ar os sp 文件 on bs tt nbsp
centos系统自带的python版本是2.6,为了体验最新的版本2.7.8(python3系列除外),所以得升级原有的python版本。
首先是下载python2.7.8
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
解压缩:
tar zxvf Python-2.7.8.tgz
进入python解压缩后的文件夹:
cd Python-2.7.8
读取配置文件:
./configure
编译:
make
安装:
make install
到此安装完毕。
查看安装的版本:
python -V
显示版本是 python2.7.8,说明安装成功。系统默认的版本已经指向python2.7.8了。
标签:http ar os sp 文件 on bs tt nbsp
原文地址:http://www.cnblogs.com/frank7c/p/4121137.html