1.安装selenium
使用国内源下载:
pip install selenium -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

2.下载chrome的chromedriver地址: http://chromedriver.storage.googleapis.com/index.html 注意:不同的Chrome的版本对应的chromedriver.exe 版本也不一样。

3.配置环境变量
将下载好的chromedriver解压放到 D:/driver
添加系统环境变量 Path 中增加 D:/driver