easy_install python 安装错误
我使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
确保您已完成所有这些操作。
您可以通过打开命令提示符并输入“
easy_install
”来检查安装情况Make sure you've done all of this.
You can check installing by opening a command prompt and typing "
easy_install
"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.我在尝试使用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!