How to install pip on Ubuntu
Pip is a better alternative to Easy Install for installing Python packages. It is most "nutritious" when used with its companion virtualenv. For more information on pip and virtualenv see my blog post: Notes on using pip and virtualenv with Django.
Install pip and virtualenv for Ubuntu 10.10 Maverick and newer
$ sudo apt-get install python-pip python-dev build-essential $ sudo pip install --upgrade pip $ sudo pip install --upgrade virtualenv
For older versions of Ubuntu
- Install Easy Install
$ sudo apt-get install python-setuptools python-dev build-essential
- Install pip
$ sudo easy_install pip
- Install virtualenv
$ sudo pip install --upgrade virtualenv
- How to use pip with crate.io — posted 2012-10-24
- How to install MySQLdb in a virtualenv on Ubuntu Karmic — posted 2010-02-15
Using psycopg2 with virtualenv on Ubuntu
JauntyMaverick — posted 2009-07-31
- Notes on using pip and virtualenv with Django — posted 2009-05-06
- Installing Python 2.6 from source on Ubuntu Hardy — posted 2008-10-02
12 Comments — Comments feed for this post
#1 bob commented on 2010-03-19:
too bad the version in the ubuntu reps is old as hell
#2 Charles Merriam commented on 2010-08-03:
The next step should be:
$ pip install --upgrade pip
#5 hibou commented on 2012-04-12:
Thanks a lot!
#6 Josué commented on 2012-05-26:
Thanks a lot!
#7 federico commented on 2012-06-21:
Never do sudo easy_install or sudo pip on a package-based distribution! Use virtualenv only.
#8 karthik commented on 2012-12-18:
#9 Mihail commented on 2013-01-13:
This tutorial really helped my to install pip on my Linux Mint distributions. Regards!
#10 Jaymz commented on 2013-01-31:
I am trying to install pip on ubuntu 10.10. But the mirror is dead, and I keep receiving errors, basically 404 as it fails to find required files. :( Is there anyway that I can install pip on my machine. As I need it to get pymongo ...