3.chromedriver安装

下载地址:

http://npm.taobao.org/mirrors/chromedriver/

按照chrome版本进行选择:

没有win64,下载个win32试试。

解压后将exe文件拷贝到chrome的目录下C:\......l\Google\Chrome\Application

将C:\......l\Google\Chrome\Application这个目录添加到环境变量path中

验证环境

>>> from selenium import webdriver
>>> dr=webdriver.Chrome()
>>> dr.get('https://www.baidu.com/')