【发布时间】:2017-09-20 06:25:05
【问题描述】:
我尝试使用 splinter,它是一个基于 selenium 的网络浏览包。
最初我尝试运行并得到错误,即使我已经下载了 chromedriver。
from splinter import Browser
browser = Browser()
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
但是我设法在brew install chromedriver 之后运行代码。
我很好奇 brew install 究竟将路径粘贴到了哪里。我查看了 .bash_profile 并没有发现任何区别。
【问题讨论】:
-
“brew install 已将路径粘贴到”是什么意思?
-
基本上我想知道如果我从网上下载chromedriver,而不是运行
brew install chromdriver -
请使用编辑按钮将其添加到您的问题中。