Last active
August 29, 2015 14:10
-
-
Save earthday/ded100a0c77368f1fa49 to your computer and use it in GitHub Desktop.
How to update Python to 2.7.8 on CentOS6.x
This file contains 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
sudo yum update -y | |
sudo yum groupinstall -y 'development tools' | |
sudo yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel xz-libs wget | |
sudo wget http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz | |
tar xvf Python-2.7.8 | |
cd Python-2.7.8 | |
sudo ./configure --prefix=/usr/local | |
sudo make | |
sudo make altinstall | |
sudo wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | |
sudo /usr/local/bin/python2.7 ez_setup.py | |
sudo /usr/local/bin/easy_install-2.7 pip | |
# sudo /usr/local/bin/easy_install-2.7 requests | |
# sudo /usr/local/bin/easy_install-2.7 psutil | |
# sudo /usr/local/bin/easy_install-2.7 paramiko |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment