如何在 Windows 7 上的 Python 2.7.1 中安装 easy_install
我已在 Windows 7 上安装了 Python 2.7.1,但无法安装 easy_install。 请帮我。
I have installed Python 2.7.1 on Windows 7, but I am unable to install easy_install.
Please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我通常只运行 ez_setup.py。 IIRC,效果很好,至少在 UAC 关闭的情况下是这样。
它还会在您的 Python\scripts 子目录中创建一个 easy_install 可执行文件,该子目录应该位于您的 PATH 中。
更新:我强烈建议不要再为 easy_install 烦恼了!直接跳到点,各方面都更好!
安装同样简单:从安装说明页面,您可以可以下载 get-pip.py 并运行它。工作原理就像上面提到的 ez_setup.py 一样。
I usually just run ez_setup.py. IIRC, that works fine, at least with UAC off.
It also creates an easy_install executable in your Python\scripts subdirectory, which should be in your PATH.
UPDATE: I highly recommend not to bother with easy_install anymore! Jump right to pip, it's better in every regard!
Installation is just as simple: from the installation instructions page, you can download get-pip.py and run it. Works just like the ez_setup.py mentioned above.
对于 32 位 Python,安装程序位于此处。 您的
\Python27\Scripts
目录中将有easy_install.exe
运行安装程序后,如果您正在寻找 64 位安装程序,
,这是一个很好的资源: < a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="noreferrer">http://www.lfd.uci.edu/~gohlke/pythonlibs/
作者有安装工具和分发的安装程序。任何一个都会给你
easy_install.exe
for 32-bit Python, the installer is here. after you run the installer, you will have
easy_install.exe
in your\Python27\Scripts
directoryif you are looking for 64-bit installers, this is an excellent resource:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
the author has installers for both Setuptools and Distribute. Either one will give you
easy_install.exe
查找官方2.7 setuptools安装程序(其中包含easy_install)。您只需从 Windows 64 位源安装。
Look for the official 2.7 setuptools installer (which contains easy_install). You only need to install from sources for windows 64 bits.
该工具是 setuptools(现在称为 Distribute)包的一部分。安装分发。当然,您必须手动获取该文件。
http://pypi.python.org/pypi/distribute#installation-instructions
That tool is part of the setuptools (now called Distribute) package. Install Distribute. Of course you'll have to fetch that one manually.
http://pypi.python.org/pypi/distribute#installation-instructions
我最近也使用了 ez_setup.py,并且制作了一个关于如何安装它的教程。该教程有快照并且简单易懂。您可以在下面找到它:
使用 ez_setup.py 安装 easy_install
我希望您觉得这有帮助。
I recently used
ez_setup.py
as well and I did a tutorial on how to install it. The tutorial has snapshots and simple to follow. You can find it below:Installing easy_install Using ez_setup.py
I hope you find this helpful.
在 Windows 上安装 setuptools 的推荐方法是下载 ez_setup.py 并运行它。该脚本将下载适当的 .egg 文件并为您安装。
为了获得最佳结果,请首先卸载以前的版本(请参阅卸载)。
安装完成后,您将在 Python Scripts 子目录中找到一个 easy_install.exe 程序。为了简单调用和获得最佳结果,请将此目录添加到 PATH 环境变量(如果尚不存在)。
更多详细信息: https://pypi.python.org/pypi/setuptools
The recommended way to install setuptools on Windows is to download ez_setup.py and run it. The script will download the appropriate .egg file and install it for you.
For best results, uninstall previous versions FIRST (see Uninstalling).
Once installation is complete, you will find an easy_install.exe program in your Python Scripts subdirectory. For simple invocation and best results, add this directory to your PATH environment variable, if it is not already present.
more details : https://pypi.python.org/pypi/setuptools
我知道这不是您问题的直接答案,但它确实为您的问题提供了一种解决方案。 Python 2.7.9 包括 PIP 和 SetupTools,如果您更新到此版本,您的问题将有一个解决方案。
I know this isn't a direct answer to your question but it does offer one solution to your problem. Python 2.7.9 includes PIP and SetupTools, if you update to this version you will have one solution to your problem.