重装系统后:selenium无法找到chrome--报错selenium.common.exceptions.WebDriverException: Message: unknown error: c

成功解决成功解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome bi 将下载的Chromedriver文件放在你的python路径下,这里我的路径是“C:\Users\HP\AppData\Local\Programs\Python\Python310”在调用selenium的Chrome过程中遇到如下错误,在网上找了很多方法都没有解决,最终发现是谷歌Chrome与Chromedriver的版本问题。,选择对应的版本,我这里是104.0.5112.81,选下面其中一个根据自己的电脑系统下载都行。1、首先查看自己的Chrome版本,点击设置,关于Chrome即可。... 阅读详情

重装系统后:selenium无法找到chrome--selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

一、报错

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

在这里插入图片描述

翻译过来为:selenium.common.exceptions.WebDriverException:消息:未知错误:找不到Chrome二进制文件

即找不到chrome浏览器

二、解决方法

添加chrome路径:

ops.binary_location = r'I:\Program Files (x86)\Google\Chrome\Application\chrome.exe'

ops是传递给option的对象
完整为:

from selenium.webdriver.chrome.options import Options
ops.binary_location = r'I:\Program Files (x86)\Google\Chrome\Application\chrome.exe'(此处是我的chrome位置,需要在r""中填上自己的chrome位置)
browser = webdriver.Chrome(options=ops)

在这里插入图片描述
这个是我自己设置的输出,出现代表着正确

三、第二个报错:

selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chrome

连接错误,需要

ping localhost

如果为ping的结果为:
一般错误
一般错误
一般错误
这样的结果
则存在错误

四、解决方法:

关闭防火墙
在这里插入图片描述
在这里插入图片描述
再次,

ping localhost

在这里插入图片描述
参见《mac selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedri》链接: link.

关于appium踩坑 selenium.common.exceptions.WebDriverException: Message: An unknown server-side error(已解决) 点进来的小伙伴一定要先仔细看一下自己的报错详情是否与博主的一致,该 "WebDriverException" 异常类型很多,请仔细核查该文的报错信息是否与你的一致。 阅读详情

相关推荐

游戏开发中的AI与RAG技术应用实践

检索增强生成(RAG)技术是当前AI领域的重要突破,它通过结合信息检索与文本生成能力,显著提升了大型语言模型在专业领域的实用性。其核心原理是建立动态知识库,在生成响应前先检索相关专业资料作为上下文。这种技术特别适合解决游戏开发中的复杂问题,如虚幻引擎API查询、角色背景生成等技术场景。在实际工程应用中,RAG系统需要精心设计分层检索策略、缓存机制和硬件加速方案。通过将RAG深度集成到游戏引擎工作流中,开发者可以快速解决技术难题,新成员也能更快掌握引擎特性,大幅提升团队协作效率。

weixin_29323977的博客 537

selenium.common.exceptions.WebDriverException: Message: unknown Error: cannot find Chrome binary

运行python爬虫程序时,报错:selenium.common.exceptions.WebDriverException: Message: unknown Error: cannot find Chrome binary 原因:浏览器没有调用起来,可能由两种情况引起: 1.ChromeDriver.exe驱动有问题(包括版本,路径等等) 2.Chrome.exe本身有问题。 解决办法: 1.指定chromedriver.exe驱动绝对路径 driver = webdriver.Chrome(r'd:

weixin_43832437的博客 2万+

仪表数字图像识别的传统方法

虽然现有很多机器学习算法能够准确地识别数字,但是传统方法对于一些需要离线识别且计算能力有限的下位机设备来说,仍然有非常不错的效果。因此,今天就向大家讲解一下传统的数字识别方法在仪表读数方面的应用。 1.图像预处理技术 1.1 主要流程 图像处理依次需要进行图片预处理、字轮区域定位、字符分割和字符识别等过程。其中图像处理流程如下图所示。 2. 详细过程 2.1 灰度化 为了减小图像原始数据量,本系...

XYZ 4526

已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

努力让自己发光,对的人才能迎着光而来 2万+

ESP32-S3射频测试与全球认证全栈实践指南

功率谱密度(PSD)和发射功率等级是无线通信设备射频合规的核心基础概念,其物理层原理直接决定自适应测试、阻塞容限及多国认证的通过路径。PSD ≥10 dBm/MHz触发强制性自适应测试,需验证LBT机制与跳频鲁棒性;而16级可编程发射功率等级(-24 dBm至+20 dBm)则为功耗、覆盖与法规平衡提供工程调控维度。该能力广泛应用于低功耗蓝牙IoT终端、智能家居网关及工业无线传感器等场景,尤其在ESP32-S3平台中,需结合eFuse校准、Sigma工具链与QuickTrack认证策略实现从实验室调试到量产

weixin_34945060的博客 298

ABAP BAPI_PRODORD_CHANGE函数详解:如何高效重读生产订单主数据

本文深入解析ABAP BAPI_PRODORD_CHANGE函数在生产订单主数据高效处理中的应用。通过详细讲解函数架构、主数据重读机制及实战代码示例,帮助开发人员掌握生产订单数据的精准读取与更新技术,提升SAP系统集成与自动化处理效率。

weixin_29207149的博客 481

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary解决合集

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary排查与问题的解决

weixin_54897474的博客 3309

使用mne包来对脑电数据进行预处理(一)

MNE(MNE-Python)是一个用于处理脑电(EEG)、磁图(MEG)和其他神经科学数据的Python库。它提供了丰富的功能,包括数据加载、预处理、分析和可视化,旨在帮助研究人员和神经科学家更轻松地进行脑电数据的处理和分析。在本文中,我们使用mne来对不同的格式的脑电数据集进行数据读取。

m0_71596228的博客 4314

【Python】已解决:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrom

错误“selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary”通常出现在Selenium尝试启动Chrome浏览器时,无法找到Chrome的可执行文件。已解决:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary。

屿小夏.的知识博客 4848

提示词工程中的上下文隔离

已经进入context的prompt是没有办法让大模型真正的忘记的,但是可以通过prompt技巧强约束模型的后续推理中“不再使用、不再提及、不再引用”某部分提示词,这其实是一种行为抑制(behavior suppression),并不是删除。

Criss@陈磊 238

【maven】idea左侧External Libraries里,没有Maven的依赖包 代码飘红

文章目录1.概述M.参考 1.概述 因为内网开发,然后这几天我被隔离了,然后公司搞了一个外网的vpn能连接的云桌面,云桌面也是网络隔离的,因此只能自己拷贝相关的文件到里面。 然后我就拷贝了代码和maven仓库中的一部分,因为本地的20G一次拷贝不完,需要多次拷贝,但是我拷贝了kafka,仍然飘红。具体如下 idea左侧External Libraries里,没有Maven的依赖包 然后整了很久都没搞定,后来我自己新建了一个项目,然后引入发现是不可以的,而且框框里面的飘红。 然后我就想是不是因为缺少依赖

九师兄 4414

selenium.common.exceptions.WebDriverException 报错问题解决

我的开发环境: 操作系统 Mac OS 10.12 Python 3.6.5 Chrome 71.0 chromedriver 2.45 selenium + chromedriver 可以让代码模拟人类使用浏览器访问网站的行为,但是在初始化的时候报错是令人头疼的,比如我就遇到了这样的报错内容: selenium.common.exceptions.W...

yangyifan_0811的专栏 1万+

基于 YOLOv26 的校园安全监控系统:多场景应用

本文提出了一种基于YOLOv26的校园安全监控系统,采用多场景应用架构实现对校园安全的智能监测。系统核心技术包括YOLOv26目标检测、DeepSORT目标跟踪、区域安全定义和行为分析等模块,通过边缘计算平台实现实时处理。研究构建了包含多种校园场景的专业数据集,并采用数据增强技术提升模型性能。系统可检测人员、车辆和物品等目标,分析其行为轨迹,评估安全风险并触发告警。实验结果表明,该系统能有效识别校园安全隐患,为安全管理提供智能化解决方案。

一键难忘的博客 512

selenium 报错:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot get automa

报错: selenium.common.exceptions.WebDriverException: Message: unknown error: cannot get automation extensionfrom unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfe...

qq284489030的博客 2971

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary问题 selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary报错 问题原因: 一般是因为chrome.exe或者是chromedriver.exe有问题 解决方法: 添加chr

weixin_54812545的博客 1708

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

Message: unknown error: cannot find Chrome binary的一些问题

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary的一些问题 可能是因为安装谷歌浏览器的时候把安装路径移出c盘出现问题 # option = webdriver.Chrome(r"E:\Google\Chrome\Application\chromedriver.exe") # 1.创建浏览器对象 web = Chrome(r"E:\Google\Chrome\App

sdlcmm的博客 5477

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

python-selenium ”selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find

3、找到Google Chrome安装目录,一般在C:\Users\Administrator\AppData\Local\Google\Chrome\Application\Google Chrome.exe,将Google Chrome.exe复制一个出来,并重命名为chrome.exe,并将目录C:\Users\Administrator\AppData\Local\Google\Chrome\Application\添加到系统path变量中。selenium下载地址;

一介散修 1342

【selenium】Message: unknown error: cannot find Chrome binary解决方案

问题描述 # 从 selenium 中导入 webdriver(驱动) from selenium import webdriver # 选择 Chrome 浏览器并打开 # 注意要用chrome.exe的实际地址 browser = webdriver.Chrome() #browser = webdriver.Chrome(r'G:\programe_file\Google\Chrome\Application\chrome.exe') 首先我们下载了chrome的驱动放在对应的python同一级目

小楼一夜听春雨 2927

关于:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

selenium做ui自动化,启动浏览器就遇到了报错:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary 有两种可能原因 没有chromedriver 没有找到chrome 解决方案:三个方式 方式1: 指定chromedriver.exe驱动绝对路径(也有可能你忘了在相关目录下放置chromedriver.exe,所以在做这个之前先看一下相关目录是否有ch

白骨梦儿 5425

解决:selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service

在使用selenium操作Chrome浏览器报错:selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service C:\Program Files (x86)\Google\Chrome\Application\chrome.exe。

nings666的博客 1619

【Selenium】Selenium运行时报cannot find Chrome binary错误的解决办吧

这种情况一般是浏览器对应的驱动没有在默认路径下找到浏览器的二进制文件。Selenium提供了方法设置浏览器二进制文件的位置。卸载浏览器,重新安装到默认路径下。配置浏览器的安装目录到环境变量中。

殷小速的博客 2061

解决:selenium.common.exceptions.WebDriverException:Message:Can not connect to the Service chromedriver

背景 在使用之前的代码时,报错: Traceback (most recent call last): File "xxx", line xx, in driver = webdriver.Chrome() File \“xxx/webdriver.py\”, line 73, in init self.service.start() File \“xxx/service.py\”, line 104, in start .......

nings666的博客 3750

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

使用Chromedriver直接报错selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary 到cmd中发现能够运行Chromedriver 却无法使用 原因: 发现自己的Chrome更新过了老的Chromedriver无法使用 解决办法: 下载新的Chromedriver 替换掉之前路径中的Chromedriver ...

Charlesssssss的博客 515

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred 报错

【代码】selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred 报错。

weixin_43288473的博客 9002

WebDriverException: Message: unknown error: cannot find Chrome binary解决方法

【直接手动运行chromedriver.exe,保证和chrome的版本好一致】

那年那月 1263
上一篇: 完全图解:linux及其图形界面的安装及其初步使用
下一篇: mitmproxy正常启动但是无法抓包
python__reported
博客等级 码龄7年 249粉丝 141原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址