我想在cygwin的python中安装一些软件包,但我得到以下错误:“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.7
或easy_install-3.4
(或者你已经安装的任何xy
版本的Python)。
Easy Install是一个与setuptools捆绑在一起的python模块(easy_install),可以在这里find它:http://pypi.python.org/pypi/setuptools。 你必须自己安装setuptools。
如果你需要python和setuptools在cygwin中工作比:
除了安装setuptools(如其他答案中所述)之外,还需要确保C:\Python25\Scripts
在您的PATH
。