gpt4 book ai didi

python - 网络驱动程序异常 : Message: 'geckodriver' executable needs to be in PATH

转载 作者:太空狗 更新时间:2023-10-29 19:32:06 25 4
gpt4 key购买 nike

操作系统:Windows 7 Selenium 版本 3.0.1火狐浏览器:48.0.2

Traceback (most recent call last):
File "C:\Users\LENOVO\Desktop\kk2.py", line 4, in <module>
driver = webdriver.Firefox()
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 135, in __init__
self.service.start()
File "C:\Python27\lib\site-packages\selenium\webdriver\common\service.py", line 71, in start
os.path.basename(self.path), self.start_error_message)
WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

请详细地逐步提供信息,实际上我是学习者

最佳答案

对于基于 Linux 的系统,下载 geckodriver .提取它并将驱动程序复制到/usr/local/bin,最后使其可执行 (chmod +x geckodriver)。

关于python - 网络驱动程序异常 : Message: 'geckodriver' executable needs to be in PATH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40188699/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com