[英]WebDriverException: WebDriverException: Message: 'chromedriver' executable needs to be in PATH
I'm new with Selenium and I have this error:我是 Selenium 的新手,我有这个错误:
WebDriverException: WebDriverException: Message: 'chromedriver' executable needs to be in PATH
What this error means and how to fix it?这个错误意味着什么以及如何修复它?
This happens when the path for the chromedriver.exe
file is wrong.当chromedriver.exe
文件的路径错误时会发生这种情况。 The chromedriver.exe
file can be stored in your local. chromedriver.exe
文件可以存储在您的本地。 Suppose the .exe
file is in the C:
drive → Chromedriver
folder, this would be the correct path:假设.exe
文件在C:
盘 → Chromedriver
文件夹中,这将是正确的路径:
"C:\\Chromedriver\\chromedriver.exe"
driver = webdriver.Chrome(executable_path="C:\Chromedriver\chromedriver.exe")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.