【问题标题】:easy_install does not work in Windows 7easy_install 在 Windows 7 中不起作用
【发布时间】:2010-10-18 16:12:53
【问题描述】:

我在 C:\Python26 中安装了 Python 2.6.4。

我从这里安装了 PyQt4:http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-Py2.6-gpl-4.7.7-1.exe

我已将此路径添加到 %PATH%:

C:\Python26;C:\Python26\Scripts

然而,当我在 cmd.exe 中键入此命令时:

easy_install cheetah

我收到此错误:

C:\Users\Richard>easy_install cheetah
'easy_install' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Richard>

有什么帮助吗?在 Windows XP 中它可以工作。

【问题讨论】:

    标签: python pyqt4


    【解决方案1】:

    我认为它住在这里:c:\python\scripts\easy_install.exe


    稍后:好的,你安装easy_install了吗?为您的 python 版本下载适当的 Windows 安装程序here。 (如果你没有scripts目录,那么你可能没有安装easy_install。)

    【讨论】:

    • 我也这样做了。 C:\Python26 中没有 Scripts 目录。
    • easy_install 在安装 Python 时未安装。如果easy_install 安装正确(使用hughdbrown 链接的信息),将会有一个Scripts 目录。
    【解决方案2】:

    尝试将C:\Python26\Scripts 路径添加到%PATH%easy_install.exe 应该在那里。

    【讨论】:

    • 我也这样做了。 C:\Python26 中没有 Scripts 目录。
    【解决方案3】:

    有一个相关的问题。

    我在分号后添加了一个空格,然后在脚本目录中输入。直到我删除了空间,easy_install 才起作用。

    即。 C:\Python26; C:\Python26\脚本 不工作...

    【讨论】:

      【解决方案4】:
      1. 确保easy_install 安装在$Pythonpath\Scripts
      2. $Pythonpath\Scripts 添加到%PATH%。如何做到这一点可以在https://stackoverflow.com/a/4855685/1750173找到
      3. 重新启动命令提示符。

      【讨论】:

        猜你喜欢
        • 2011-06-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-01-22
        相关资源
        最近更新 更多