如何在 Windows 7 上的 Python 2.7.1 中安装 easy_install

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4930216/
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-08-18 18:11:46  来源:igfitidea点击:

How to install easy_install in Python 2.7.1 on Windows 7

pythoneasy-install

提问by prabhat

I have installed Python 2.7.1 on Windows 7, but I am unable to install easy_install. Please help me.

我已经在 Windows 7 上安装了 Python 2.7.1,但我无法安装 easy_install。请帮我。

回答by Keith

That tool is part of the setuptools (now called Distribute) package. Install Distribute. Of course you'll have to fetch that one manually.

该工具是 setuptools(现在称为 Distribute)包的一部分。安装分发。当然,您必须手动获取那个。

http://pypi.python.org/pypi/distribute#installation-instructions

http://pypi.python.org/pypi/distribute#installation-instructions

回答by Henrik Heimbuerger

I usually just run ez_setup.py. IIRC, that works fine, at least with UAC off.

我通常只运行ez_setup.py。IIRC,效果很好,至少在 UAC 关闭的情况下。

It also creates an easy_install executable in your Python\scripts subdirectory, which should be in your PATH.

它还会在您的 Python\scripts 子目录中创建一个 easy_install 可执行文件,该子目录应该在您的 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 instructionspage, you can download get-pip.pyand run it. Works just like the ez_setup.py mentioned above.

更新:我强烈建议不要再为 easy_install 烦恼了!直接跳到点子上,在各方面都更好!
安装同样简单:从安装说明页面,您可以下载get-pip.py并运行它。就像上面提到的 ez_setup.py 一样工作。

回答by David Cournapeau

Look for the official 2.7 setuptoolsinstaller (which contains easy_install). You only need to install from sources for windows 64 bits.

寻找官方 2.7 setuptools安装程序(其中包含 easy_install)。您只需要从 Windows 64 位的源安装。

回答by Corey Goldberg

for 32-bit Python, the installer is here. after you run the installer, you will have easy_install.exein your \Python27\Scriptsdirectory

对于 32 位 Python,安装程序在这里。运行安装程序后,您easy_install.exe\Python27\Scripts目录中将有

if you are looking for 64-bit installers, this is an excellent resource:

如果您正在寻找 64 位安装程序,这是一个很好的资源:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

http://www.lfd.uci.edu/~gohlke/pythonlibs/

the author has installers for both Setuptools and Distribute. Either one will give you easy_install.exe

作者有 Setuptools 和 Distribute 的安装程序。任何一个都会给你easy_install.exe

回答by Eenvincible

I recently used ez_setup.pyas well and I did a tutorial on how to install it. The tutorial has snapshots and simple to follow. You can find it below:

我最近ez_setup.py也在用,我做了一个关于如何安装它的教程。本教程有快照且易于遵循。您可以在下面找到它:

Installing easy_install Using ez_setup.py

使用 ez_setup.py 安装 easy_install

I hope you find this helpful.

我希望你觉得这有帮助。

回答by vrnithinkumar

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.

在 Windows 上安装 setuptools 的推荐方法是下载 ez_setup.py 并运行它。该脚本将下载适当的 .egg 文件并为您安装。

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.

安装完成后,您将在 Python Scripts 子目录中找到一个 easy_install.exe 程序。为了简单调用和获得最佳结果,将此目录添加到您的 PATH 环境变量中(如果它尚不存在)。

more details : https://pypi.python.org/pypi/setuptools

更多细节:https: //pypi.python.org/pypi/setuptools

回答by cbhyphen

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.

我知道这不是对您问题的直接回答,但它确实为您的问题提供了一种解决方案。Python 2.7.9 包括 PIP 和 SetupTools,如果您更新到此版本,您将有一个解决问题的方法。