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
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.
解决方案
-
90% 成功率
python setup.py bdist_wheel
-
80% 成功率
mv my_pkg-1.0-py3-none-any.whl my_pkg-1.0-py3-none-any.whl (ensure underscores and hyphens correct)
-
85% 成功率
pip wheel . --no-deps
无效尝试
常见但无效的做法:
-
70% 失败
May still not meet the spec.
-
100% 失败
Pip refuses to install.
-
90% 失败
Must be .whl.