解决 'chromedriver' executable needs to be in PATH.'报错

Posted Claire_xu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决 'chromedriver' executable needs to be in PATH.'报错相关的知识,希望对你有一定的参考价值。

试了把chromedriver.exe放到chrome安装文件下,python安装文件下,然后把路径配到path里,均无用。

最后是修改函数调用得以解决:

from selenium import  webdriver

browser = webdriver.Chrome(executable_path = ‘C:\Program Files (x86)\Google\Chrome\Application\chromedriver_X64.exe‘)
browser.get(‘http://www.baidu.com‘)

以上是关于解决 'chromedriver' executable needs to be in PATH.'报错的主要内容,如果未能解决你的问题,请参考以下文章