在Windows 7中安装selenium for Python

2024-05-18 10:18:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在Windows7 64位计算机上为“Python-3.4.1”安装“selenium-2.44.0”。我下载了“selenium-2.44.0.tar.gz”并解压缩到“Desktop”文件夹。

当我执行命令时:

C:\Python34>python C:\Users\User_Name\Desktop\selenium-2.44.0\setup.py install

我得到以下输出:

running install
running bdist_egg
running egg_info
creating selenium.egg-info
writing selenium.egg-info\PKG-INFO
writing dependency_links to selenium.egg-info\dependency_links.txt
writing top-level names to selenium.egg-info\top_level.txt
writing manifest file 'selenium.egg-info\SOURCES.txt'
warning: manifest_maker: standard file 'setup.py' not found

error: package directory 'py\selenium' does not exist

running install
running bdist_egg
running egg_info
creating selenium.egg-info
writing selenium.egg-info\PKG-INFO
writing dependency_links to selenium.egg-info\dependency_links.txt
writing top-level names to selenium.egg-info\top_level.txt
writing manifest file 'selenium.egg-info\SOURCES.txt'
warning: manifest_maker: standard file 'setup.py' not found

error: package directory 'py\selenium' does not exist

但是,在“selenium-2.44.0”文件夹中,存在“py\selenium”目录。

救命!!

谢谢


Tags: topyinfotxteggtopseleniumnot