我做了以下但遇到了错误:
selenium.common.exceptions.WebDriverException:消息:’chromedriver’ 可执行文件需要在 PATH 中。请参阅 https://sites.google.com/a/chromium.org/chromedriver/home
from splinter import Browser browser = Browser('chrome')
我怎样才能解决使用 Mac 的问题?
预先感谢您,一定会投票/接受答案!
原文由 Jo Ko 发布,翻译遵循 CC BY-SA 4.0 许可协议
在 Mac 上解决此问题的最简单方法是:
用于浏览器自动化的 Splinter 和类似框架依赖于在 PATH 中安装和调用的外部模块。
编辑:chromedriver 从 homebrew/core 迁移到 homebrew/cask