# What do Python wheel compatibility tags mean?


The last three fields of a [wheel](https://pydevtools.com/handbook/reference/wheel.md) filename identify its supported Python implementation, binary interface, and platform. A Windows wheel cannot replace a Linux build.

## Read the filename from the right

For example:

```text
example-1.0-cp312-cp312-manylinux_2_17_x86_64.whl
```

| Field | Meaning |
|---|---|
| `example-1.0` | Distribution name and release version |
| First `cp312` | Python tag: CPython 3.12 |
| Second `cp312` | ABI tag: the CPython 3.12 application binary interface |
| `manylinux_2_17_x86_64` | Platform tag: Linux on x86-64 with a compatible glibc baseline of 2.17 or newer |

The ABI is the contract between compiled code and the interpreter.

An optional build tag can precede these three compatibility fields. Dots express alternatives: `py2.py3-none-any` supports Python 2 and Python 3.

## Distinguish pure Python from native extensions

`py3-none-any` targets Python 3 without interpreter-specific ABI or platform restrictions. **It does not promise support for every Python 3 release:** `Requires-Python` metadata and dependency requirements still apply.

A native extension tagged `cp312-cp312-win_amd64` targets CPython 3.12 on 64-bit x86 Windows. Renaming the file does not change its compatibility.

An `abi3` wheel uses CPython's stable ABI: `cp310-abi3-win_amd64` targets compatible CPython versions starting at 3.10 on Windows x86-64. The extension must use the supported API. Conventional `abi3` wheels do not support free-threaded builds; CPython documents `abi3t` for those builds.

For the build-side choices, see [packaging native extensions](https://pydevtools.com/handbook/how-to/how-to-package-python-projects-with-native-extensions.md).

## Match the platform and its baseline

| Platform tag | What to check |
|---|---|
| `win_amd64` | Windows with the x86-64 architecture, regardless of CPU vendor |
| `macosx_11_0_arm64` | macOS 11 or later on Apple silicon |
| `manylinux_2_17_x86_64` | A compatible glibc-based Linux environment on x86-64 |
| `musllinux_1_2_x86_64` | A compatible musl-based Linux environment on x86-64 with musl 1.2 or later |
| `linux_x86_64` | A generic Linux architecture tag, without the manylinux portability promise |

`manylinux` and `musllinux` target different C libraries. Alpine Linux uses musl, so matching the CPU architecture alone does not make a glibc wheel compatible.

Tags do not guarantee that required drivers or external libraries are installed. [Wheel variants](https://pydevtools.com/handbook/explanation/what-are-wheel-variants.md) address additional hardware distinctions, including GPU requirements.

## Let the installer compare supported tags

Installers match wheel tags against those supported by the target interpreter, then apply version constraints and package metadata.

With [uv](https://pydevtools.com/handbook/reference/uv.md) installed, inspect the preferred tag:

```bash
uv run --no-project --with packaging python -c "from packaging.tags import sys_tags; print(next(sys_tags()))"
```

Output resembles `cp314-cp314-macosx_27_0_arm64`, depending on the interpreter and platform. `uv run --no-project --with packaging` skips project discovery and makes `packaging` available for the command. It can still use an active or discovered virtual environment. This prints the preferred tag, not every compatible tag.

If no wheel matches, the installer may try a [source distribution](https://pydevtools.com/handbook/reference/sdist.md) or fails if source builds are unavailable or disabled.
