Skip to content

Instantly share code, notes, and snippets.

@buley
Forked from gkostadinov/centos-python2.7.5-install.sh
Last active August 29, 2015 14:05
Show Gist options
  • Save buley/efb66283a95e13640f57 to your computer and use it in GitHub Desktop.
Save buley/efb66283a95e13640f57 to your computer and use it in GitHub Desktop.
#!/bin/bash
yum groupinstall -y "Development tools"
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel
cd /usr/local/src/
wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2
tar xf Python-2.7.5.tar.bz2
cd Python-2.7.5
./configure --prefix=/usr/local
make && make altinstall
cd ..
wget https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip
unzip distribute-0.7.3.zip
cd distribute-0.7.3
python2.7 setup.py install
/usr/local/bin/easy_install-2.7 virtualenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment