python install_error ai_generated true

ERROR: Could not build wheels for package, which use PEP 517 and cannot be installed directly

ID: python/setuptools-missing-build-backend

Also available as: JSON · Markdown · 中文
80%Fix Rate
86%Confidence
0Evidence
2024-05-20First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.x active

Root Cause

The package uses a PEP 517 build backend but the required build dependency (e.g., setuptools, wheel, or a custom backend) is not installed in the isolated build environment.

generic

中文

该包使用 PEP 517 构建后端,但所需的构建依赖(如 setuptools、wheel 或自定义后端)未安装在隔离的构建环境中。

Workarounds

  1. 90% success
    pip install setuptools wheel cython  # then pip install package
  2. 85% success
    pip install setuptools wheel && pip install package --no-build-isolation

Dead Ends

Common approaches that don't work:

  1. 70% fail

    Disabling build isolation requires the build backend to already be installed in the current environment; if it isn't, the error persists.

  2. 80% fail

    Upgrading pip does not install the missing build backend specified in pyproject.toml [build-system].requires.