python
data_error
ai_generated
true
ERROR: pip._vendor.packaging.utils.InvalidWheelName: Invalid wheel filename: mypackage-1.0.0-py3-none-any.whl (missing platform tag)
ID: python/pip-unsupported-package-format
80%Fix Rate
85%Confidence
0Evidence
2025-09-10First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
Root Cause
The wheel filename does not conform to PEP 427 naming convention, e.g., missing or malformed tags.
generic中文
wheel 文件名不符合 PEP 427 命名约定,例如缺少或格式错误的标签。
Workarounds
-
85% success Rename the wheel file correctly
Ensure filename is like 'mypackage-1.0.0-py3-none-any.whl' (correct: mypackage-1.0.0-py3-none-any.whl is actually valid; the error is about missing platform tag, but 'any' is a valid platform. If error persists, check tags.)
-
95% success Rebuild the wheel with proper metadata
Run: python setup.py bdist_wheel (ensures correct naming).
Dead Ends
Common approaches that don't work:
-
Renaming the file to remove the platform tag
90% fail
Makes the filename even more invalid.
-
Using a different compression format like tar.gz
80% fail
Pip expects .whl files for wheels.