Mac “'geckodriver' executable needs to be in PATH”
geckodriver
WebDriver for Firefox
项目地址:https://gitcode.com/gh_mirrors/ge/geckodriver
免费下载资源
·
Mac 下使用selenium打开一个空的浏览器窗口:
from selenium import webdriver
driver = webdriver.Firefox()
python报错:
'geckodriver' executable needs to be in PATH
解决
1.brew
安装geckodriver
$ brew install geckodriver
2.安装完成后,再次运行:
from selenium import webdriver
driver = webdriver.Firefox()
打开网页成功,问题解决!
附图:
GitHub 加速计划 / ge / geckodriver
7.07 K
1.51 K
下载
WebDriver for Firefox
最近提交(Master分支:2 个月前 )
53fea8f4
2 个月前
f911bb4c
6 个月前
更多推荐
已为社区贡献2条内容
所有评论(0)