python
install_error
ai_generated
partial
错误:mypackage-1.0.0-cp311-cp311-manylinux_2_34_x86_64.whl 在此平台上不受支持的 wheel。
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
80%修复率
87%置信度
0证据数
2024-11-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
根因分析
wheel 的平台标签(manylinux_2_34)要求 glibc >= 2.34,但主机 glibc 更旧(例如 CentOS 7 的 glibc 2.17)。pip 拒绝安装不兼容的 wheel。
English
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.
解决方案
-
90% 成功率
pip install --no-binary mypackage mypackage
-
95% 成功率
Upgrade to a newer base image (e.g. Ubuntu 22.04+ or manylinux2014-compatible distro)
-
80% 成功率
pip install mypackage==0.9.0 # version built with manylinux2014 tag
无效尝试
常见但无效的做法:
-
95% 失败
Force does not bypass platform tag validation.
-
90% 失败
Dependency resolution is not the issue; the wheel tag is.