Installation instructions

The recommended way to use pip is within virtualenv, since every virtualenv has pip installed in it automatically. This does not require root access or modify your system Python installation. For instance:

$ curl -O
$ python my_new_env
$ . my_new_env/bin/activate
(my_new_env)$ pip install ...

When used in this manner, pip will only affect the active virtual environment. If you do want to install pip globally into your Python installation, see the instructions below.


Prior to installing pip make sure you have either setuptools or distribute installed. Please consult your operating system’s package manager or install it manually:

$ curl | python


If you are using Python 3.X you must use distribute; setuptools doesn’t support Python 3.X.

Using the installer

Download and execute it, using the Python interpreter of your choice:

$ curl | python

This may have to be run as root.

Alternative installation procedures

Using the source distribution

You can find the source on PyPI:

$ curl -O
$ tar xvfz pip-1.0.tar.gz
$ cd pip-1.0
$ python install # may need to be root

Installing the development version

First you will need to clone the git repo:

$ git clone

Now we can install from the repo:

$ cd pip
$ python install # may need to be root

Table Of Contents

Previous topic


Next topic


This Page