python install_error ai_generated true

错误:需要 Microsoft Visual C++ 14.0 或更高版本。通过 "Microsoft C++ Build Tools" 获取:https://visualstudio.microsoft.com/visual-cpp-build-tools/

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ID: python/pip-install-requires-compiler

其他格式: JSON · Markdown 中文 · English
80%修复率
89%置信度
0证据数
2024-02-05首次发现

版本兼容性

版本状态引入弃用备注
3.8 active — — —
3.9 active — — —
3.10 active — — —
3.11 active — — —
3.12 active — — —

根因分析

包包含 C 扩展,需要在 Windows 上使用 C 编译器构建。

English

The package contains C extensions and needs a C compiler to build on Windows.

generic

解决方案

  1. 95% 成功率
    Install Microsoft C++ Build Tools from the provided URL.
  2. 80% 成功率
    Use a pre-built wheel if available: `pip install --only-binary :all: foo`.

无效尝试

常见但无效的做法:

  1. 90% 失败

    Forces source build, which still needs a compiler.

  2. 95% 失败

    Installation will fail.