Last active
December 23, 2015 02:29
-
-
Save sturadnidge/6566994 to your computer and use it in GitHub Desktop.
python-2.7 on CentOS 6.x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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