Created
November 25, 2013 21:38
-
-
Save DeaconDesperado/7649349 to your computer and use it in GitHub Desktop.
Install python on Centos
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
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