selenium eclipse环境搭建

1、python 3.5下载及安装
2、setuptools 与pip
 python 3.5集成了pip和setuptools
(1)setuptools是python的distutilsde工具的增强工具
easy_install命令调用setuptools来完成安装模块功能
(3)pip 可以使用pip命令方便安装python的第三方库
 
3、安装selenium
通过pip install selenium命令进行安装
pip uninstall selenium ---卸载安装
 
4、eclipse环境准备
(1)、下载并解压eclipse 
        http://www.eclipse.org/downloads/  
(2)、下载并安装java JDK
(3)、在eclipse中安装pydev
启动eclipse,点击help-->install new software
点击Add按钮
name填写PyDev  location填写:http://pydev.org/updates

(4)配置PyDev插件
windows->preferences->PyDev->Interpreter - Python,New一个Python解释器,填上解释器名字和路径,路径选相应的python.exe。
General->Editors->Text Editors->Spelling,Encoding改成Other:UTF-8
General->Workspace,Text file encoding改成Other:UTF-8
5、安装浏览器驱动
下载相对应的浏览器,放到path目录下,如D:\python\Scripts

 

 
python-3.5.1.exe
posted @ 2016-06-20 15:52  soloate  阅读(434)  评论(0编辑  收藏  举报