作者:你是我最终的荒唐 | 来源:互联网 | 2023-09-03 04:16
centos6.5haveinstalledpython2.6.6.Becausethestablityofpython2.7.5,youneedupdatethe
centos6.5 have installed python2.6.6. Because the stablity of python 2.7.5, you need update the previous version.
To download:Python-2.7.5.tar.bz2(https://www.python.org/download/releases/2.7.5)
Installation
tar jxvf Python-2.7.5.tar.bz2
cd Python-2.7.5
./configure
make
make install
Noted:
Before installed python, input command: yum install -y gcc
If not, the command(./configure) can be error.
run: python, you can see
[root@localhost ~]# python
Python 2.7.5 (default, Sep 18 2014, 20:59:42)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Additional Reference:
1)http://blog.csdn.net/chenggong2dm/article/details/9100591