python
data_error
ai_generated
true
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%Fix Rate
85%Confidence
0Evidence
2025-05-20First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.10 | active | — | — | — |
Root Cause
The wheel filename does not follow the PEP 427 naming convention, often due to missing tags or incorrect separators.
generic中文
wheel文件名不符合PEP 427命名约定,通常由于标签缺失或分隔符错误。
Workarounds
-
90% success
python setup.py bdist_wheel
-
80% success
mv my_pkg-1.0-py3-none-any.whl my_pkg-1.0-py3-none-any.whl (ensure underscores and hyphens correct)
-
85% success
pip wheel . --no-deps
Dead Ends
Common approaches that don't work:
-
70% fail
May still not meet the spec.
-
100% fail
Pip refuses to install.
-
90% fail
Must be .whl.