为 Python 2.6.2 安装 easy_install(缺少?)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1106574/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 21:29:47  来源:igfitidea点击:

installing easy_install for Python 2.6.2 (missing?)

pythoneasy-install

提问by Jason S

I am not a python user, I'm just trying to get couchdb-dump up and running and it's in an "egg" file which I guess needs easy_install. I have Python 2.6.2 running on my computer but it seems to know nothing about easy_install or setuptools... help! What can I do to fix this???

我不是python用户,我只是想启动并运行couchdb-dump,它位于一个“egg”文件中,我想它需要easy_install。我在我的计算机上运行 Python 2.6.2,但它似乎对 easy_install 或 setuptools 一无所知......帮助!我能做些什么来解决这个问题???

edit:you may note from the setuptoolspage that there are Windows .exe installers for 2.3, 2.4, and 2.5, but not 2.6. What the heck?!?!

编辑:您可能会从setuptools页面注意到有适用于2.3、2.4和 2.5 的 Windows .exe 安装程序,但没有适用于 2.6。有没有搞错?!?!

argh, this is a duplicate question, sorry.

啊,这是一个重复的问题,抱歉。

p.s. this solutionis the one that seemed simplest and it worked for me.

ps这个解决方案似乎是最简单的,而且对我有用。

回答by Unknown

I don't like the whole easy_install thing either.

我也不喜欢整个 easy_install 事情。

But the solution is to download the source, untar it, and type

但解决办法是下载源代码,解压,然后输入

python setup.py install

回答by Corey Goldberg

http://pypi.python.org/pypi/setuptools
... has been updated and has windows installers for Python 2.6 and 2.7

http://pypi.python.org/pypi/setuptools
... 已经更新并有适用于 Python 2.6 和 2.7 的 Windows 安装程序

(note: if you need 64-bit windows installer: http://www.lfd.uci.edu/~gohlke/pythonlibs/)

(注意:如果您需要 64 位 Windows 安装程序:http: //www.lfd.uci.edu/~gohlke/pythonlibs/

回答by monkut

For installing setuptools for 2.6 download "ez_setup.py" from:

要安装 2.6 的 setuptools,请从以下位置下载“ez_setup.py”:

http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06

http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06

And run it. setuptools should be installed. This will place easy_install in your python26/Scripts directory, make sure this is in your PATH, and then you should be able to use easy_install.

并运行它。应该安装 setuptools。这会将 easy_install 放在您的 python26/Scripts 目录中,确保它在您的 PATH 中,然后您应该可以使用 easy_install。