easy_install python 安装错误

发布于 2024-12-14 00:12:12 字数 327 浏览 3 评论 0原文

我使用 Windows 7 和 Python IDLE。

我正在尝试使用 easy_install 但出现此错误:

回溯(最近一次调用):文件“”,第 1 行,位于 easy_install NameError:名称“easy_install”未定义

在我的“路径”中包含它的安装目录(C:\ Python27 \ Scripts)。 对可能出什么问题有什么想法吗?

或许... 在Python IDLE中>文件>路径浏览器,我看不到 C:\Python27\Scripts。如何添加呢?

I use Windows 7 and Python IDLE.

I'm trying to use easy_install but gut this error:

Traceback (most recent call last): File "", line 1, in

easy_install NameError: name 'easy_install' is not defined

In included in my 'Path' the directory where it has been installed (C:\Python27\Scripts).
Any thoughts on what could be wrong?

Maybe...
In Python IDLE > File > Path browser, I cannot see C:\Python27\Scripts. How to add it ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

清君侧 2024-12-21 00:12:12

确保您已完成所有这些操作。

  • 将 Python 添加到 Windows 路径。
  • 下载并安装 setuptools 适用于适当的 python 版本。
  • 将 Scripts 目录(例如 C:\Python27\Scripts)添加到 Windows 路径。
    您可以通过打开命令提示符并输入“easy_install”来检查安装情况

Make sure you've done all of this.

  • Adding Python to Windows Path.
  • Downloading and installing setuptools for appropriate python version.
  • Adding Scripts directory (for instance C:\Python27\Scripts) to Windows Path.
    You can check installing by opening a command prompt and typing "easy_install"
雨后彩虹 2024-12-21 00:12:12

easy_install 是一个可执行程序,而不是 Python 脚本。从 Windows 命令行运行它,而不是从 Python。

easy_install is an executable program, not a Python script. Run it from the Windows command line, not from Python.

梦与时光遇 2024-12-21 00:12:12

我在尝试使用easy_install时曾经遇到过类似的问题。我终于能够安装 easy_install 和 pip,尽管我实际上只需要其中之一来完成工作。

如果您仍然在解决这个问题,我建议您按照我最近为其他要求我做的人整理的这些说明进行操作。在您的计算机上重新安装 easy_install 非常容易遵循。我还解释了如何将目录添加到您的路径 - 听起来您已经完成了,但仍然看到上述问题。这是可能帮助您解决此问题的链接。

适用于 Windows 的简单 easy_install 安装指南

我希望这可以帮助您重新启动并运行!祝你好运!

I once had a similar problem when I was trying to use easy_install. I finally was able to install both easy_install and pip although I really needed just one of them to get the job done.

If you are still struggling with this problem, I would suggest you follow these instructions I put together recently for others who asked me to. It is fairly easy to follow in order to re-install easy_install on your machine. I also explain how to add the directory to your path - which sounds like you have done already but still seeing the above problem. Here is the link that might help you solve this problem.

Simple easy_install installation guide for windows

I hope this helps you get back up and running again! Good luck!

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