首页 > 解决方案 > selenium.common.exceptions.WebDriverException:消息:服务 .\geckodriver.exe 意外退出。状态码为:3221225595

问题描述

我一直试图让 Instapy 工作,但遇到了这个错误。

selenium.common.exceptions.WebDriverException: Message: Service .\geckodriver.exe unexpectedly exited. Status code was: 3221225595

以下是一些关于我已经做过的事情的信息;

  1. 下载最新版本的GeckoDriver.
  2. 下载最新版本的FireFox.
  3. 已安装Visual C++ Redistributable for Visual Studio 2015

热切等待解决方案:)

标签: pythonseleniumfirefoxgeckodriverselenium-firefoxdriver

解决方案


此错误消息...

selenium.common.exceptions.WebDriverException: Message: Service .\geckodriver.exe unexpectedly exited. Status code was: 3221225595

...暗示GeckoDriver意外退出。


状态码:3221225595

根据获取错误服务 geckodriver 意外退出中的文档。状态码是: 3221225595 Status Code 3221225477在没有VCRUNTIME140.dll的情况下引发。

VCRUNTIME140_dll

到目前为止,您需要在所有 Windows 测试机器上安装Microsoft Visual Studio 可再发行运行时才能使 geckodriver 正常工作。

这个问题在Bugzilla中通过Geckodriver windows 二进制文件在没有安装 Microsoft MSCV 运行时不再运行的情况下进行了讨论和跟踪。


奥特罗

您可以在以下位置找到详细讨论:


推荐阅读