1. python官网下载地址:

https://www.python.org/downloads/windows/

安装seleminum之前必须先安装python

  1. 浏览器和驱动下载地址:

Chrome各个版本下载地址

Google Chrome 64bit Windows版_chrome浏览器,chrome插件,谷歌浏览器下载,谈笑有鸿儒

Chromedriver各个版本下载地址

http://chromedriver.storage.googleapis.com/index.html

IE驱动各个版本下载地址

http://selenium-release.storage.googleapis.com/index.html

火狐浏览器各个版本下载地址

Directory Listing: /pub/firefox/releases/

geckodrive(火狐驱动)下载地址

Releases · mozilla/geckodriver · GitHub

  1. 驱动存放位置

然后将firefox的驱动getkodriver.exe文件放在C:\Program Files (x86)\python\Scripts的文件夹下

然后打开cmd,执行pip install selenium命令,默认安装selenium的最新版

注意:firefox48版本以上需安装firefox的驱动,firefox48以下版本默认有驱动,无需安装驱动

  1. Python中下载源地址

阿里云:http://mirrors.aliyun.com/pypi/simple

中国科技大学:http://pypi.mirrors.ustc.edu.cn/simple

豆瓣:http://pypi.douban.com/simple

清华大学:https:pypituna.tsinghua.edu.cn/simple

中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple

#更新源文件安装语法,阿里云路径

pip install -upgrade pytest -i http://mirrors.aliyun.com/pypi/simple

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐