Skip to content

Instantly share code, notes, and snippets.

Created June 4, 2014 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/0e772bead667500051ae to your computer and use it in GitHub Desktop.
Save anonymous/0e772bead667500051ae to your computer and use it in GitHub Desktop.
Centos 5 install python2.7
#!/bin/bash
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
# Python 2.7.6:
cd ~
wget http://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 --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make && make altinstall
# Download and install Setuptools + pip
cd ~
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
python2.7 ez_setup.py
python3.3 ez_setup.py
easy_install-2.7 pip
easy_install-3.3 pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment