python install_error ai_generated true

error: Cython.Distutils.build_ext is not available

ID: python/setuptools-cython-not-found

Also available as: JSON · Markdown · 中文
80%Fix Rate
87%Confidence
0Evidence
2024-10-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.10 active

Root Cause

The package uses Cython to build C extensions, but Cython is not installed in the build environment.

generic

中文

包使用Cython构建C扩展,但构建环境中未安装Cython。

Workarounds

  1. 90% success
    In pyproject.toml: [build-system] requires = ["setuptools", "Cython"]
  2. 85% success
    pip install Cython && pip install --no-build-isolation package
  3. 80% success
    pip install --only-binary :all: package

Dead Ends

Common approaches that don't work:

  1. 60% fail

    May not be in the isolated build environment.

  2. 90% fail

    Still requires Cython.

  3. 70% fail

    May break the build.