Skip to content

Instantly share code, notes, and snippets.

@jamshid
Last active February 7, 2016 05:37
Show Gist options
  • Save jamshid/8066066 to your computer and use it in GitHub Desktop.
Save jamshid/8066066 to your computer and use it in GitHub Desktop.
Is this really the best way to install python2.7 on CentOS?
yum install -y bzip2-devel zlib zlib-devel openssl openssl-devel
cd /opt
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar xf Python-2.7.6.tar.xz
cd Python-2.7.6
./configure --prefix=/usr/local
make && make altinstall
cd /tmp
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
# This fails for various reasons if you didn't do above yum!
python2.7 ./ez_setup.py
# Or maybe this if zilb didn't install?!:
# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.1.tar.gz --no-check-certificate
# tar -xf setuptools-2.0.1.tar.gz ; cd setuptools-2.0.1 ; python2.7 setup.py install
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python2.7 ./get-pip.py
pip install requests boto awscli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment