chromedriver安装踩坑

https://npm.taobao.org/mirrors/chromedriver/下载对应的chrome版本驱动

然后放到python的Scipts目录下(不要看别的地方放在chrome安装目录下),否则大概率出现异常

File "C:\python\lib\site-packages\selenium\webdriver\common\service.py", line 83, in start

os.path.basename(self.path), self.start_error_message)

selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注

7 + 2 =