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

发布于 2024-10-16 12:24:28 字数 63 浏览 8 评论 0原文

我已在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

浅忆 2024-10-23 12:24:28

我通常只运行 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.

℉絮湮 2024-10-23 12:24:28

对于 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 directory

if 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

や三分注定 2024-10-23 12:24:28

查找官方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.

空宴 2024-10-23 12:24:28

该工具是 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

兰花执着 2024-10-23 12:24:28

我最近也使用了 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.

赴月观长安 2024-10-23 12:24:28

在 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

書生途 2024-10-23 12:24:28

我知道这不是您问题的直接答案,但它确实为您的问题提供了一种解决方案。 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文