python install_error ai_generated true

错误:foo-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 在此平台上不是受支持的 wheel。

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

ID: python/pip-no-matching-distribution-for-wheel

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

版本兼容性

版本状态引入弃用备注
3.8 active — — —
3.9 active — — —
3.10 active — — —
3.11 active — — —
3.12 active — — —

根因分析

wheel 是为与当前环境不同的平台或 Python 版本构建的。

English

The wheel is built for a different platform or Python version than the current environment.

generic

解决方案

  1. 95% 成功率
    Download the correct wheel for your platform/Python version from PyPI.
  2. 80% 成功率
    Build from source: `pip install --no-binary foo foo`.

无效尝试

常见但无效的做法:

  1. 95% 失败

    Does not change the binary compatibility.

  2. 90% 失败

    Still rejects incompatible wheel.