python
install_error
ai_generated
true
错误:foo-2.0.0-cp312-cp312-manylinux_2_17_x86_64.whl 在此平台上不受支持。
ERROR: foo-2.0.0-cp312-cp312-manylinux_2_17_x86_64.whl is not a supported wheel on this platform.
ID: python/pip-python-version-mismatch-wheel-tag
80%修复率
87%置信度
0证据数
2025-06-18首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
根因分析
wheel 的 ABI 标签(cp312)与运行的解释器或平台不匹配。
English
Wheel's ABI tag (cp312) doesn't match the running interpreter or platform.
解决方案
-
90% 成功率
pip install foo # let pip pick the right wheel # or: pip install --no-binary :all: foo
-
85% 成功率
pyenv install 3.12.4 && pyenv local 3.12.4 pip install foo
无效尝试
常见但无效的做法:
-
85% 失败
The binary is compiled for a different ABI; import crashes with undefined symbols.
-
80% 失败
Force does not bypass platform compatibility checks.