pip requires setuptools and it has to be installed first, before pip can run.
To install setuptools from scratch:
-
Securely download ez_setup.py.
-
Then run the following (which may require administrator access):
To upgrade a previous install of setuptools or distribute, there are two scenarios.
-
You currently have setuptools or distribute and some version of pip:
$ pip install --upgrade setuptools
If you have distribute, this will upgrade to you distribute-0.7.X, which is just a wrapper, that depends on setuptools. The end result will be that you have distribute-0.7.X (which does nothing) and the latest setuptools installed.
-
You currently have setuptools or distribute, but not pip:
Follow the pip install procedure below, then come back and run:
$ pip install --upgrade setuptools