【已解决】:selenium.common.exceptions.WebDriverException: Message: 'geckodriver' ...

来源:互联网 发布:php网络验证源码post 编辑:程序博客网 时间:2024/05/16 06:53

爬虫 selenium

出错:selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.


https://github.com/mozilla/geckodriver/releases中下载对应版本,我下的win64的,将其解压文件放在Molliza文件夹下如:C:\...\Mozilla\Firefox,然后将该路径加入Path中,我这样试了,但还是出错,然后就把geckodriver.exe复制到了E:\Anaconda3文件夹下,与Python.exe同目录,成功。

阅读全文
1 0
原创粉丝点击