Skip to content

Instantly share code, notes, and snippets.

@DeaconDesperado
Created November 25, 2013 21:38
Show Gist options
  • Save DeaconDesperado/7649349 to your computer and use it in GitHub Desktop.
Save DeaconDesperado/7649349 to your computer and use it in GitHub Desktop.
Install python on Centos
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
tar xf Python-2.7.3.tar.bz2
cd Python-2.7.3
./configure --prefix=/usr/local
make && make altinstall
cd /root
wget --no-check-certificate http://pypi.python.org/packages/source/d/distribute/distribute-0.6.27.tar.gz
tar xf distribute-0.6.27.tar.gz
cd distribute-0.6.27
python2.7 setup.py install
cd /root
easy_install pip
pip-2.7 install -r requirements.txt
yum remove -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment