1.下载安装包:
# wget
2.编译安装
# tar -xzvf Python-2.7.9.tgz # cd Python-2.7.9 # ./configure --prefix=/usr/local/python2.7 # make && make install
3.更新版本
# mv /usr/bin/python /usr/bin/python_old # ln -s /usr/local/python2.7/bin/python /usr/bin/python
时间: 2024-10-11 13:43:32