1,python安装在C:\Python27下
2,安装selenium,下载selenium包https://pypi.python.org/pypi/selenium;
解压,cmd进入目录:
C:\Python_selenium\selenium-3.8.0>
python setup.py install
3,配置chromedriver 【原因:报错selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home】
打开链接地址https://sites.google.com/a/chromium.org/chromedriver/downloads 后,下载chromedrover到本地C:\Python27下
双击文件,
配置进path环境变量 path中加入 C:\Python27\chromedriver_win32
4, http://blog.csdn.net/u011757108/article/details/50868566