Skip to content

Instantly share code, notes, and snippets.

@robbwagoner
Forked from jnrbsn/gist:8062545
Last active July 24, 2017 21:28
Show Gist options
  • Save robbwagoner/c80728aac2661bbf54e1 to your computer and use it in GitHub Desktop.
Save robbwagoner/c80728aac2661bbf54e1 to your computer and use it in GitHub Desktop.
Install Python 2.7 for Amazon Linux 2014.03 and older. Python 2.7 is the default for Amazon Linux 2014.09 and newer.
# Amazon Linux 2014.03 and older
sudo yum update
sudo yum install python27
curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | sudo /usr/bin/python27
sudo easy_install pip
echo "alias python='python27'" >> ~/.bashrc
source ~/.bashrc
# Amazon Linux 2014.09
yum install python27-setuptools
easy_install-2.7 pip
#pip2.7 install ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment