I am trying to install some package in cygwin's python, but I'm getting the following error: "easy_install: command not found".

I have tried to run "easy_install.py", the result is also "easy_install.py: command not found". I have tried to search the whole of cygwin's /usr tree for anything named with the prefix "easy", none found.

Am I missing something? AFAIK, easy_install tool should be batteries included in python 2.5. Or is there a package that needs to be installed for that that I missed?

link|improve this question
Now even setting up developer tools is not programming related? – itsadok May 12 '09 at 5:43
feedback

3 Answers

From cygwin prompt, do:

$ wget http://peak.telecommunity.com/dist/ez_setup.py
$ python ez_setup.py

This will install easy_install on your cygwin.

Easy as py.

link|improve this answer
Plus One for the Horrible Pun. – Fergal Moran Sep 5 '11 at 19:22
feedback

In addition to installing setuptools (as described in other answers), you also need to make sure C:\Python25\Scripts is in your PATH.

link|improve this answer
feedback

Easy Install is a python module (easy_install) bundled with setuptools, which can be found here: http://pypi.python.org/pypi/setuptools . You must install setuptools by yourself.

  • If you want to install it into windows python than use setuptools install script from cmd shell or use MS Windows installer
  • If you need python with setuptools to work within cygwin than:

    • use cygwin's own python (you can install one using cygwin's setup.exe)
    • use setuptools source
link|improve this answer
I don't think so. "which easy_setup" and "which easy_setup.py" says that it is not found. – Alex Gontmakher May 11 '09 at 21:09
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.