webdriverexception: message: 'chromedriver' executable needs to be in path. please see https://sites.google.com/a/chromium.org/chromedriver/home
时间: 2023-05-04 19:01:02 浏览: 71
这个错误提示表明需要将Chromedriver的可执行文件路径添加到系统路径中。可以参考链接 https://sites.google.com/a/chromium.org/chromedriver/home,下载并设置Chromedriver的路径。
相关问题
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
这个错误提示是因为你的系统找不到ChromeDriver的路径。你需要将ChromeDriver的路径添加到环境变量中或者将ChromeDriver放到系统的PATH路径下。下面是一些解决方法:
1. 将ChromeDriver放入PATH路径中。
将ChromeDriver下载后解压到某个目录下,然后将该目录添加到系统的PATH路径中。
2. 在程序中指定ChromeDriver的路径。
在Python代码中指定ChromeDriver的路径,例如:
```python
from selenium import webdriver
browser = webdriver.Chrome('/path/to/chromedriver')
```
请注意将`/path/to/chromedriver`替换为ChromeDriver实际的路径。
希望能帮助到你。
selenium.common.exceptions.webdriverexception: message: 'chromedriver' executable needs to be in path. please see https://sites.google.com/a/chromium.org/chromedriver/home
这个错误消息表明,chromedriver可执行文件需要在路径中。请参考https://sites.google.com/a/chromium.org/chromedriver/home 以获取更多信息。