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

无法安装Selenium Wire:需Microsoft Visual C++ 14.0及以上版本

解决Selenium Wire安装失败问题

问题重现

distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.

解决步骤

  • 下载Microsoft C++ Build Tools安装包,运行后选择「桌面开发使用C++」工作负载
  • 在工作负载详情中,确保勾选「MSVC v143 - VS 2022 C++ x64/x86生成工具」(兼容14.0及更高版本要求),按需添加对应系统版本的Windows SDK
  • 完成安装后重启电脑,确保环境变量生效
  • 重新执行安装命令:pip install selenium-wire

替代方案(可选)

如果不想安装编译工具,可尝试下载对应Python版本和系统架构的Selenium Wire预编译wheel包,直接用pip install [wheel包路径]安装。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.09 11:20:02