Seems kinda weird that they'd require a package manager to install a package manager. I'm on Windows BTW.
-
Potential duplicate of http://stackoverflow.com/q/4750806/95592 – Matthew Rankin Feb 23 '11 at 23:02
5 Answers
Pip does require setuptools. Pip is really just a wrapper around setuptools to provide a better installer than easy_install and some nicer installation behaviors, plus uninstall, requirements files, etc. Even if you somehow got pip installed without setuptools it still won't run without it.

- 122,012
- 20
- 106
- 116
You can use Distribute
instead of setuptools
: it installs a package called setuptools
(it's a fork of the latter). You can install Distribute by downloading and running distribute_setup.py
.
Update: As Gringo Suave says, the above is obsolete now - distribute
and setuptools
have now merged, and the merged project is called setuptools
.

- 95,872
- 14
- 179
- 191
You can download setuptools
package as Windows installer from pypi/setuptools and then install pip
or easy_install

- 583
- 1
- 3
- 12
Solution for Windows Users
If you installed ActivePython on Windows, then you have pip by default, as well as PyPM (ActiveState's package manager). The following excerpt is from What's included in ActivePython 2.7:
Additional Packages
- PyPM: Python Package Manager to download and install binary packages. Also included: virtualenv, Distribute, pip, SQLAlchemy.
Solution for OS X Users
Not sure if setuptools
is required when installing pip using homebrew. You might try that.
To install homebrew:
ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"
Then to install pip:
brew install pip

- 21,988
- 13
- 81
- 109

- 457,139
- 39
- 126
- 163
-
Update: Homebrew no longer ships a `pip` formula. The recommended way to get it is via `easy_install pip`. The OS X System python includes Setuptools and the Homebrew Python packages include Distribute, so `easy_install` should always be available. – Sharpie Jun 05 '11 at 04:23
Sure, just grab the source from http://pypi.python.org/pypi/pip/0.8.2#downloads
unpack it, cd into it, and run python setup.py install

- 6,231
- 3
- 24
- 27
-
2I tried that but it won't work because setup.py contains this lovely line of code: from setuptools import setup – CamelCaseGuy Feb 23 '11 at 22:33