Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Install Python 2.7 on CentOS 5.11  (Read 2271 times)

0 Members and 1 Guest are viewing this topic.

vyshakhv

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
Install Python 2.7 on CentOS 5.11
« 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/