# 错误：mypackage-1.0.0-cp311-cp311-manylinux_2_34_x86_64.whl 在此平台上不受支持的 wheel。

- **ID:** `python/pip-wheel-platform-tag-mismatch`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

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

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## 解决方案

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

## 无效尝试

- **** — Force does not bypass platform tag validation. (95% 失败率)
- **** — Dependency resolution is not the issue; the wheel tag is. (90% 失败率)
