报错:
selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
解决:
0、打开Chrome输入 “chrome://version/” 查看Chrome版本。
1、下载和Chrome浏览器对应的chromedriver。
http://chromedriver.storage.googleapis.com/index.html
2、将下载的chromedriver.exe文件放到Python的Scripts(pip.exe所在位置)目录下。
本文介绍如何解决selenium中ChromeDriver未找到的问题。首先,需检查Chrome版本并下载对应版本的ChromeDriver。其次,将ChromeDriver放置于Python的Scripts目录下,确保其在系统PATH中。
655

被折叠的 条评论
为什么被折叠?



