tar xvf Python-2.7..tar.bz2
mkdir /usr/local/python27
ls
cd Python-2.7.
./configure --prefix=/usr/local/python27
make
make install
mv /usr/bin/python /usr/bin/python2.6.6
ln -sf /usr/local/python27/bin/python2.7 /usr/bin/python
python进去就可以看到具体的版本号了
tar xvf Python-2.7..tar.bz2
mkdir /usr/local/python27
ls
cd Python-2.7.
./configure --prefix=/usr/local/python27
make
make install
mv /usr/bin/python /usr/bin/python2.6.6
ln -sf /usr/local/python27/bin/python2.7 /usr/bin/python
python进去就可以看到具体的版本号了