python install_error ai_generated true

错误:foo-1.2.0-cp311-cp311-manylinux_2_17_x86_64.whl 在此平台上不受支持。

ERROR: foo-1.2.0-cp311-cp311-manylinux_2_17_x86_64.whl is not a supported wheel on this platform.

ID: python/pip-wheel-not-supported-on-platform

其他格式: JSON · Markdown 中文 · English
80%修复率
86%置信度
0证据数
2024-06-06首次发现

版本兼容性

版本状态引入弃用备注
3.x active — — —

根因分析

wheel 的平台/ABI 标签(cp311 manylinux x86_64)与当前解释器或架构不匹配(如 macOS arm64 或 Python 3.10)。pip 拒绝不兼容的 wheel。

English

The wheel's platform/ABI tag (cp311 manylinux x86_64) does not match the current interpreter or architecture (e.g. macOS arm64, or Python 3.10). pip rejects the incompatible wheel.

generic

解决方案

  1. 90% 成功率
    Let pip pick the right wheel: pip install foo  # pip selects the correct tag for your platform/Python
  2. 82% 成功率
    Check supported tags: python -m pip debug --verbose | grep -A20 'Compatible tags'  # then download a wheel matching one of them

无效尝试

常见但无效的做法:

  1. 85% 失败

    Force-reinstall doesn't bypass the platform tag check; pip still refuses the incompatible wheel.

  2. 80% 失败

    Ignore-installed only skips the uninstall step; platform compatibility is still enforced.