我是靠谱客的博主 健康画板,这篇文章主要介绍selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PAT,现在分享给大家,希望可以做个参考。
在pycharm中运行程序:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("http://www.baidu.com")
出现问题下面问题:
selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

将chromedriver.exe放入这个目录成功解决!
要把chromedriver放到python安装路径下就可以了,不要放到chrome安装目录下,没有起作用
最后
以上就是健康画板最近收集整理的关于selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PAT的全部内容,更多相关selenium.common.exceptions.WebDriverException:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复