Skip to content

Instantly share code, notes, and snippets.

@sturadnidge
Last active December 23, 2015 02:29
Show Gist options
  • Save sturadnidge/6566994 to your computer and use it in GitHub Desktop.
Save sturadnidge/6566994 to your computer and use it in GitHub Desktop.
python-2.7 on CentOS 6.x
# prereqs
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel
# python
curl -O http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz
tar -C /usr/src -xzvf Python-2.7.5.tgz
cd /usr/src/Python-2.7.5/
./configure --prefix=/usr/local
# don't disturb system python version - use altinstall!!!
make && make altinstall
# install setuptools for 2.7
curl -O https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
python2.7 ez_setup.py install
# virtualenv
easy_install-2.7 virtualenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment