2013-01-04 136 views
-1

我正在使用python 2.7。我已下載文件selenium-2.28.0並解壓到C:\Python27。然後運行命令python setup.py install但出現錯誤。我正在使用32位窗口7 pc無法在windows7中安裝pip和硒

C:\Users>cd.. 

C:\>cd C:\Python27\selenium-2.28.0 

C:\Python27\selenium-2.28.0>python setup.py install 
'python' is not recognized as an internal or external command, 
operable program or batch file. 

C:\Python27\selenium-2.28.0>setup.py install 
Traceback (most recent call last): 
    File "C:\Python27\selenium-2.28.0\setup.py", line 17, in <module> 
    from setuptools import setup 
ImportError: No module named setuptools 

C:\Python27\selenium-2.28.0> 

可能是什麼原因?對於解壓縮後的文件pip-1.2.1selenium發生相同的文件夾也是如此。

你能指導我嗎?

編輯

Microsoft Windows [Version 6.1.7600] 
Copyright (c) 2009 Microsoft Corporation. All rights reserved. 

C:\Users\Arup Rakshit>cd.. 

C:\Users>cd.. 

C:\>cd C:\Python27\selenium-2.28.0> 
The syntax of the command is incorrect. 

C:\>C:\Python27\selenium-2.28.0 
'C:\Python27\selenium-2.28.0' is not recognized as an internal or external comma 
nd, 
operable program or batch file. 

C:\>cd C:\Python27\selenium-2.28.0 

C:\Python27\selenium-2.28.0>c:\python27\python.exe setup.py install 
Traceback (most recent call last): 
    File "setup.py", line 17, in <module> 
    from setuptools import setup 
ImportError: No module named setuptools 

C:\Python27\selenium-2.28.0> 
+0

請幫我安裝它。 – CodeLover

+0

@Ross Patterson你能幫助我嗎? – CodeLover

+0

嘗試C:\ Python27 \ selenium-2.28.0> c:\ python27 \ python.exe setup.py安裝 –

回答

1

最後,我已經通過easy_installer解決了我的問題。我用python2.7安裝了所有需要的軟件包。

這裏是Youtube鏈接easy_installer

希望這將有助於其他呢!