published fresh until

pip: why is a wheel “not a supported wheel”?

Summary As of October 2026, run python -m pip debug --verbose in the failing interpreter, then compare its supported tags with the wheel filename. A malformed filename and an incompatible wheel are separate failures; renaming a binary does not make it compatible (checked 2026-10-28).

Not for missing torch distributions or removed packaging APIs, see distutils-pkg-resources-pip-build-errors-and-torch-wheels

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

foo-1.2.0-cp39-cp39-macosx_12_0_x86_64.whl is not a supported wheel on this platform.

pip rejects a wheel before installation because its tags do not match, or its filename cannot be parsed.

First action — run python -m pip debug --verbose using the same interpreter that failed.

Evidence status — official source code distinguishes filename parsing from tag rejection; the diagnostic has public reports behind it, but no installation or rebuild is tested here.

Not for: missing torch distributions or removed packaging APIs; see distutils-pkg-resources-pip-build-errors-and-torch-wheels.

Diagnostic: is not a supported wheel on this platform.

Diagnose the file before retrying

1. Run the read-only checks below in the failing environment. The pip debug reference documents the command and target options; as of November 2026, its current documentation is pip 26.3 (checked 2026-11-15).

python -m pip --version
python -m pip debug --verbose

Keep the interpreter path and compatible-tag list. python here means the executable for your failing virtual environment. 2. Check whether the filename has the wheel format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl. For example, An illustrative filename following this format is foo-1.0-py3-none-any.whl; it is not a package recommendation (checked 2026-10-28). An arbitrary name such as numpy.whl omits the required components. 3. If the name parses, compare its Python, ABI and platform tags with the supported list. The compatibility specification says a built distribution is installable when its tag is supported. The opening filename is the concrete example reported in issue #10793, not a download to use. A matching Python major version alone is insufficient; OS version and architecture also matter. 4. Obtain the original correctly named artifact from its publisher. Choose a build matching the target interpreter and platform. For a wheel you build yourself, PyPA build troubleshooting recommends building on the destination platform and Python version, or using cibuildwheel for multiple platforms. These are conditional remedies, not a guarantee for an arbitrary binary. 5. If installing for another target, inspect the documented --platform, --python-version, --implementation and --abi options rather than using the local machine's tags as evidence about that target. Do not change tags just to suppress rejection.

Which wording belongs to which source?

Source, checked 2026-10-28Message / behavior
pip 24.0 resolver{filename} is not a supported wheel on this platform. after the supported-tag check fails
pip 24.0 wheel parsernumpy.whl is not a valid wheel filename. is a concrete substitution into its error template
pip 26.2.2 wheel parser and vendored packaging parserInvalid names reuse packaging's message; the same example becomes Invalid wheel filename (wrong number of parts): 'numpy' because .whl has been stripped before that check

Public evidence

NAThompson, pip issue #10793, 2022-01-13 (checked 2026-10-28), reports the opening error and lists mismatched interpreter, operating system, OS version, CPU architecture and debug builds. The author calls one case “wrong interpreter.” This is a request for better diagnostics, not evidence that one pip downgrade fixes every unsupported wheel.

What to test

Confirm the replacement file has a supported tag in the actual runtime. In a disposable environment, test installation and import of the intended package. A filename parsing successfully is not proof that the binary loads or that every dependency is available.

Pitfalls

  • Using a pip executable from a different interpreter.
  • Renaming a platform-specific wheel to any.
  • Treating a missing distribution on the index as this local-file error.
  • Depending on stable machine-readable output from pip debug; its docs call the output provisional.

A prompt to give your agent

Read the linked pip debug page, wheel format and compatibility specification before proposing commands. Your training data may predate the current parser. Record the failing interpreter and pip version, then compare the exact wheel tags with that interpreter's supported tags. Distinguish malformed names from incompatible binaries. Do not rename tags, download an arbitrary third-party wheel, or claim a tested install without running one in a disposable environment.

Limits

No wheel was installed, rebuilt or imported. The public report is historical and establishes multiple failure modes, not the cause of your file's rejection. The opening filename is illustrative public evidence. Parser behavior is checked in the two source versions named above; other versions may format the error differently.

Started from a post by @NAThompson, packaged by the editor. Original post

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# pip: why is a wheel “not a supported wheel”?
Summary: As of October 2026, run python -m pip debug --verbose in the failing interpreter, then compare its supported tags with the wheel filename. A malformed filename and an incompatible wheel are separate failures; renaming a binary does not make it compatible (checked 2026-10-28).
Copy for agent
get the whatworks thread pip-unsupported-wheel-invalid-wheel-filename-tags and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread pip-unsupported-wheel-invalid-wheel-filename-tags
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks