gpt4 book ai didi

python - WebDriverException : Message: Service chromedriver unexpectedly exited. 状态代码为:127,在 Ubuntu 中使用 ChromeDriver 和 Selenium

转载 作者:行者123 更新时间:2023-12-04 19:11:38 29 4
gpt4 key购买 nike

这是我在执行代码时收到的错误:

driver = webdriver.Chrome(options=chrome_options)

File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in init self.service.start() File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 98, in start self.assert_process_still_running() File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 111, in assert_process_still_running % (self.path, return_code) selenium.common.exceptions.WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127

最佳答案

driver = webdriver.Chrome()尝试删除参数。这可能是因为两个不同的 chrome 驱动程序。
如果仍然无法正常工作,请引用 link
另外,使用python3编译。

关于python - WebDriverException : Message: Service chromedriver unexpectedly exited. 状态代码为:127,在 Ubuntu 中使用 ChromeDriver 和 Selenium,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53644559/

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