Search code examples
python-2.7repositoryrpmrhelrhel6

How to install python 2.7 on RHEL6 32 bit machine?


I am stuck with installing python2.7 on my redhat6 , which has default python 2.6 installed. Also searched a lot for repository of 'python-deltarpm' and 'deltarpm' which is required for installing 'createrepo', but didn't get. I added repo from dvd and from https://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/ and yum repolist gives repolist: 11,960. I want to install pip & virtualenv using python2.7.


Solution

  • Got it...I installed python2.7 as follows

    cd /usr/src 
    wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
    tar xzf Python-2.7.13.tgz
    cd Python-2.7.13
    ./configure
    make altinstall