-1

我正在使用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>
4

1 回答 1

1

最后我通过easy_installer解决了我的问题。我已经用 python2.7 安装了所有需要的包。

这是 Youtube 链接easy_installer

希望这对其他人也有帮助!

于 2013-01-04T22:58:10.440 回答