如何在cygwin中运行easy_install?

我想在cygwinpython中安装一些软件包,但我得到以下错误:“easy_install:command not found”。

我试图运行“easy_install.py”,结果也是“easy_install.py:找不到命令”。 我试图search整个cygwin的/ usr树中的任何名称的前缀“简单”,没有find。

我错过了什么吗? AFAIK,easy_install工具应该是包含在python 2.5中的电池。 还是有一个包,需要安装,我错过了?

从cygwin提示符下,执行:

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

这将在你的cygwin上安装easy_install。

就像py一样容易。

easy_install是setuptools软件包的一部分。 这个包是由cygwin提供的。 要安装它,请重新运行cygwin 安装程序exe安装程序,然后在软件包select步骤中,勾选“Python / python-setuptools”。

easy_install脚本附有版本号。 而不是运行easy_install ,运行easy_install-2.7easy_install-3.4 (或者你已经安装的任何xy版本的Python)。

Easy Install是一个与setuptools捆绑在一起的python模块(easy_install),可以在这里find它:http://pypi.python.org/pypi/setuptools。 你必须自己安装setuptools。

  • 如果你想把它安装到windows python比使用setuptoolscmd shell 安装脚本或使用MS Windows安装程序
  • 如果你需要python和setuptools在cygwin中工作比:

    • 使用cygwin自己的python(你可以使用cygwin的setup.exe安装一个)
    • 使用setuptools源码

除了安装setuptools(如其他答案中所述)之外,还需要确保C:\Python25\Scripts在您的PATH