-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.1
與selenium
發生相同的文件夾也是如此。
你能指導我嗎?
編輯
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>
請幫我安裝它。 – CodeLover
@Ross Patterson你能幫助我嗎? – CodeLover
嘗試C:\ Python27 \ selenium-2.28.0> c:\ python27 \ python.exe setup.py安裝 –