-
-
Save stantonk/4082043 to your computer and use it in GitHub Desktop.
Install python 2.7.3 on CentOS 5.8
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
#!/bin/bash | |
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
yum groupinstall "Development tools" | |
yum install zlib-devel | |
yum install bzip2-devel openssl-devel ncurses-devel | |
wget http://www.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 | |
/usr/local/bin/python2.7 | |
set -o vi | |
wget 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 | |
/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
Thanks! rritoch
Adding ditto only change " --no-check-certificate"
!/bin/bash
Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
yum groupinstall "Development tools"
yum install zlib-devel
yum install bzip2-devel openssl-devel ncurses-devel
wget http://www.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
/usr/local/bin/python2.7
set -o vi
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
/usr/local/bin/easy_install-2.7 virtualenv