Skip to content

Instantly share code, notes, and snippets.

@duaraghav8
Created October 9, 2018 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duaraghav8/45a9d5ec9dec3a7bad2dca44b95ae836 to your computer and use it in GitHub Desktop.
Save duaraghav8/45a9d5ec9dec3a7bad2dca44b95ae836 to your computer and use it in GitHub Desktop.
Install Python 2.7 on Centos 6
#!/bin/bash
# Installs Python 2.7 alongside Python2.6 (which still remains the default python) on a Centos 6 machine.
sudo yum install https://$(rpm -E '%{?centos:centos}%{!?centos:rhel}%{rhel}').iuscommunity.org/ius-release.rpm
yum -y install python27 python27-devel python27-pip python27-setuptools python27-virtualenv --enablerepo=ius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment