python install_error ai_generated partial

ERROR: mypackage-1.0.0-cp311-cp311-manylinux_2_34_x86_64.whl is not a supported wheel on this platform.

ID: python/pip-wheel-platform-tag-mismatch

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

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.8 active — — —
3.9 active — — —
3.10 active — — —
3.11 active — — —
3.12 active — — —

Root Cause

The wheel's platform tag (manylinux_2_34) requires glibc >= 2.34 but the host has an older glibc (e.g. CentOS 7 with glibc 2.17). pip refuses to install incompatible wheels.

generic

中文

wheel 的平台标签(manylinux_2_34)要求 glibc >= 2.34,但主机 glibc 更旧(例如 CentOS 7 的 glibc 2.17)。pip 拒绝安装不兼容的 wheel。

Workarounds

  1. 90% success
    pip install --no-binary mypackage mypackage
  2. 95% success
    Upgrade to a newer base image (e.g. Ubuntu 22.04+ or manylinux2014-compatible distro)
  3. 80% success
    pip install mypackage==0.9.0  # version built with manylinux2014 tag

Dead Ends

Common approaches that don't work:

  1. 95% fail

    Force does not bypass platform tag validation.

  2. 90% fail

    Dependency resolution is not the issue; the wheel tag is.