我正在使用python 2.7。我已经下载了文件selenium-2.28.0
并解压到C:\Python27
. 然后运行命令python setup.py install
但收到错误。我正在使用 32 位 Windows 7 电脑
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>