2010-10-18 53 views
4

我在C:\ Python26中安裝了Python 2.6.4。easy_install在Windows 7中無法正常工作

我從這裏安裝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中它工作。

回答

9

我覺得住在這裏:c:\python\scripts\easy_install.exe


後來:沒關係,你安裝了easy_install?爲您的python版本here下載相應的Windows安裝程序。 (如果你沒有scripts目錄,那麼你可能還沒有安裝easy_install。)

+0

我也是這麼做的。 C:\ Python26中沒有Scripts目錄。 – 2010-10-18 16:36:30

+0

安裝Python時未安裝easy_install。如果easy_install安裝正確(使用hughdbrown鏈接的信息),將會有一個Scripts目錄。 – Velociraptors 2010-10-18 17:11:24

2

嘗試將C:\Python26\Scripts路徑添加到%PATH%easy_install.exe應該在那裏。

+0

我也那樣做過。 C:\ Python26中沒有Scripts目錄。 – 2010-10-18 16:35:48

1

有一個問題是相關的。

我在分號後添加了一個空格,然後在scripts目錄中鍵入。 easy_install沒有工作,直到我刪除的空間。

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