码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-11-30 17:13:14      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:import   安装文件   修改   cut   style   tab   报错   selenium   table   

试了把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.'报错

标签:import   安装文件   修改   cut   style   tab   报错   selenium   table   

原文地址:http://www.cnblogs.com/stin/p/7929601.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!