Admin-Ahead Community

Linux => General Linux => Topic started by: vyshakhv on May 19, 2018, 04:56:55 pm

Title: Install Python 2.7 on CentOS 5.11
Post by: vyshakhv on May 19, 2018, 04:56:55 pm
By default CentOS 5 has python version 2.4.  It needs to upgrade to Python 2.7 on centos  5.11. Because neither CentOS 5.x or 6.x use Python 2.7.2 there is no real reason to have to deal with RPM Manager at all.

Code: [Select]
cd ~
yum -y install make gcc gcc-c++ kernel-devel
wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar -xzvf Python-2.7.2.tgz
cd Python-2.7.2
./configure
make && make install
yum install python*
reboot

#You can check your Python Version in below command
Python -V

You can also download and install the other Python Version in this link: http://www.python.org/ftp/python/