easy_install在Windows 7中不起作用

时间:2010-10-18 16:12:54

标签: python pyqt4

我在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中它可以工作。

4 个答案:

答案 0 :(得分:9)

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


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

答案 1 :(得分:2)

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

答案 2 :(得分:1)

有一个相关的问题。

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

即。 C:\ Python26; C:\ Python26 \ Scripts中 不起作用......

答案 3 :(得分:0)

  1. 确保安装easy_install位于$Pythonpath\Scripts
  2. $Pythonpath\Scripts添加到%PATH%。如何执行此操作可以在https://stackoverflow.com/a/4855685/1750173
  3. 中找到
  4. 重新启动命令提示符。