Skip to content

Instantly share code, notes, and snippets.

@earthday
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save earthday/ded100a0c77368f1fa49 to your computer and use it in GitHub Desktop.
Save earthday/ded100a0c77368f1fa49 to your computer and use it in GitHub Desktop.
How to update Python to 2.7.8 on CentOS6.x
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