报错:
WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium
.org/chromedriver/home
venv\lib\site-packages\selenium\webdriver\common\service.py:83: WebDriverException
解决:
1.下载对应版本的chromedriver
2.将chromedriver.exe拷贝至谷歌浏览器目录(如 C:\Program Files\Google\Chrome\Application)
以及python根目录(C:\Python27)。
3.将谷歌浏览器环境变量添加到path(C:\Users\HD003\AppData\Local\Google\Chrome\Application)。
至此,就可以解决 ‘chromedriver’ executable needs to be in PATH问题了。