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-28 | Message / behavior |
|---|---|
| pip 24.0 resolver | {filename} is not a supported wheel on this platform. after the supported-tag check fails |
| pip 24.0 wheel parser | numpy.whl is not a valid wheel filename. is a concrete substitution into its error template |
| pip 26.2.2 wheel parser and vendored packaging parser | Invalid 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
pipexecutable 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