- 下载selenium:国内镜像下载
pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple
- 下载chromedriver:
- 2.1查看电脑当前google浏览器的chrome版本
chrome://version/
image.png
- 2.2下载地址
[http://chromedriver.storage.googleapis.com/index.html]
(http://chromedriver.storage.googleapis.com/index.html)*
https://npm.taobao.org/mirrors/chromedriver/ - 2.3 解压到安装google 的 chrome目录
C:\Program Files (x86)\Google\Chrome\Application - 2.4 配置环境变量
PATH :
C:\Program Files (x86)\Google\Chrome\Application - 2.5 验证是否配置成功
cmd 命令下输入chromedriver