Message: ‘chromedriver‘ executable needs to be in PATH.解决办法
报错信息
raise WebDriverException(
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/home
解压缩里面:chromedriver.exe
复制到电脑的 Chrome 的安装目录
并加入到 PATH
文档说明
https://selenium-python.readthedocs.io/installation.html\#drivers
还没有评论,来说两句吧...