# 错误：foo-1.0-py3-none-any.whl 在此平台上不受支持的 wheel。

- **ID:** `python/pip-wheel-not-supported-purelib`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

pip 拒绝标签与当前解释器/平台不匹配的 wheel。通常是 wheel 为不同的 Python ABI 构建（例如在 cp312 解释器上使用 cp311），或平台标签不兼容（在 linux 上使用 win_amd64）。

## 版本兼容性

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

## 解决方案

1. **** (90% 成功率)
   ```
   python -c 'import sys; print(sys.implementation.cache_tag)'
# download correct tag, e.g. cp312
pip download --only-binary=:all: --python-version 312 --platform manylinux2014_x86_64 foo
   ```
2. **** (75% 成功率)
   ```
   pip install --no-binary foo foo
   ```

## 无效尝试

- **** — The filename tag is metadata only; the binary inside still targets another ABI and crashes at import with undefined symbols. (90% 失败率)
- **** — Force-reinstall does not bypass tag compatibility checks. (85% 失败率)
