python data_error ai_generated true

错误:无效的wheel文件名:'my_pkg-1.0-py3-none-any.whl' - wheel文件名必须采用以下形式:{distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl

ERROR: Invalid wheel filename: 'my_pkg-1.0-py3-none-any.whl' - wheel filenames must have the form: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl

ID: python/pip-wheel-filename-invalid

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

版本兼容性

版本状态引入弃用备注
3.10 active

根因分析

wheel文件名不符合PEP 427命名约定,通常由于标签缺失或分隔符错误。

English

The wheel filename does not follow the PEP 427 naming convention, often due to missing tags or incorrect separators.

generic

解决方案

  1. 90% 成功率
    python setup.py bdist_wheel
  2. 80% 成功率
    mv my_pkg-1.0-py3-none-any.whl my_pkg-1.0-py3-none-any.whl (ensure underscores and hyphens correct)
  3. 85% 成功率
    pip wheel . --no-deps

无效尝试

常见但无效的做法:

  1. 70% 失败

    May still not meet the spec.

  2. 100% 失败

    Pip refuses to install.

  3. 90% 失败

    Must be .whl.