##检查GCC版本
-bash-3.2# gcc --version gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Copyright (C) 2004 Free Software Foundation, Inc.
##下载python编译程序
-bash-3.2# wget --no-check-certificate
##解压缩Python
-bash-3.2# gunzip Python-2.7.10.tgz -bash-3.2# tar xvf Python-2.7.10.tar
##编译安装Python
-bash-3.2# cd Python-2.7.10 -bash-3.2# ./configure --prefix=/opt/python2.7.10 -bash-3.2# make -bash-3.2# make install
##安装完成
-bash-3.2# /opt/python2.7.10/bin/python --version Python 2.7.10
时间: 2024-10-11 05:24:04