easy_install不工作 - Windows 8 64位

时间:2013-09-26 15:55:18

标签: python-2.7

我确定我错过了一些明显的东西,所以我提前道歉。情况如下:

我正在尝试安装一些python模块来处理excel文档,但是,我甚至无法使用easy_install命令。 python和python \ scripts都在我的系统路径中,并且我多次运行安装工具脚本。我检查了脚本文件夹,它包含easy_install脚本和.exe文件。但是,当我尝试从命令行运行它时,我收到一个回溯错误:

>>> easy_install
Traceback (most recent call last):
  File "", line 1, in 
    easy_install
NameError: name 'easy_install' is not defined`

这是一台64位Windows 8计算机。

我在这里缺少什么?

1 个答案:

答案 0 :(得分:1)

easy_install是一个shell命令。

要在Windows上使用easy_install,请按以下步骤操作:

window + r并输入cmd,然后按Enter

可能easy_install.exe不在您的系统路径中,因此请输入easy_install的完整路径:

C:\Python27\Scripts\easy_install.exe name_of_the_package然后按Enter键。

我建议你阅读:http://pythonhosted.org/distribute/easy_install.html#windows-notes