# tar -zxvf Python-2.7.9.tgz
# cd Python-2.7.9
# ./configure --prefix=/usr/local/python-2.7.9
# make
# make install
三、系统自带了python版本,咱们须要为新安装的版本添加一个软链
# ln -s /usr/local/python-2.7.9/bin/python /usr/bin/python27
四、使用
python27 helloworld.py