You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Conda虚拟环境中升级ChromeDriver至123.0.6312.86版本?

在Conda虚拟环境中升级ChromeDriver至123.0.6312.86版本

方法一:通过conda-forge源安装

  • 激活你的Conda虚拟环境:
    conda activate 你的虚拟环境名称
    
  • 卸载旧版ChromeDriver:
    conda remove chromedriver
    
  • 安装指定版本的ChromeDriver:
    conda install -c conda-forge chromedriver=123.0.6312.86
    
    若conda-forge源无此版本,换用方法二操作。

方法二:手动下载替换

  • 激活虚拟环境后,定位当前ChromeDriver的安装路径:
    # Linux/macOS系统执行
    which chromedriver
    # Windows系统执行
    where chromedriver
    
    会返回类似你的虚拟环境路径/bin/chromedriver(Windows为Scripts目录)的路径。
  • 下载对应123.0.6312.86版本的ChromeDriver(匹配你的操作系统:Windows/macOS/Linux)。
  • 解压下载包,得到chromedriver(Windows为chromedriver.exe),替换掉上述路径中的旧文件。
  • 验证版本:
    chromedriver --version
    
    输出需显示ChromeDriver 123.0.6312.86。

验证修复效果

运行你的Selenium脚本,确认不再触发以下错误:

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 103
Current browser version is 123.0.6312.86 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

内容的提问来源于stack exchange,提问作者techiekamran

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.27 00:12:12