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

Also available as: JSON · Markdown · 中文
80%Fix Rate
85%Confidence
0Evidence
2025-09-10First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
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

  1. 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.)
  2. 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:

  1. Renaming the file to remove the platform tag 90% fail

    Makes the filename even more invalid.

  2. Using a different compression format like tar.gz 80% fail

    Pip expects .whl files for wheels.