Skip to content

Instantly share code, notes, and snippets.

@popomore
Created September 17, 2012 15:57
Show Gist options
  • Save popomore/3738171 to your computer and use it in GitHub Desktop.
Save popomore/3738171 to your computer and use it in GitHub Desktop.
upgrade python2.7 in ubuntu

Install Python2.7

$ sudo add-apt-repository ppa:fkrull/deadsnakes
$ sudo apt-get update
$ sudo apt-get install python2.7 python2.7-dev

Switch Python2.7

$ cd /usr/bin
$ rm python
$ ln -s python2.7 python

Install setuptools

$ wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
$ sudo sh setuptools-0.6c11-py2.7.egg 

Install pip

$ sudo easy_install pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment