python install_error ai_generated true

错误:来自 https://... 的 package 缺少一些构建依赖:未安装 'setuptools>=40.8.0'。

ERROR: Some build dependencies for package from https://... are missing: 'setuptools>=40.8.0' is not installed.

ID: python/pip-install-requires-build-deps

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

版本兼容性

版本状态引入弃用备注
3.x active

根因分析

包的 pyproject.toml 指定了隔离构建环境中不存在的构建依赖。pip 尝试安装它们,但可能因网络或解析器问题而失败。

English

The package's pyproject.toml specifies build dependencies that are not present in the isolated build environment. pip attempts to install them but may fail due to network or resolver issues.

generic

解决方案

  1. 90% 成功率
    pip install setuptools>=40.8.0 wheel cython  # then pip install package
  2. 85% 成功率
    pip install -r build-requirements.txt && pip install package --no-build-isolation

无效尝试

常见但无效的做法:

  1. 75% 失败

    Requires the build dependencies to be already installed; if not, the error persists.

  2. 60% 失败

    Other build dependencies may also be missing; installing only setuptools is incomplete.