Wheel Tags & Compatibility
A wheel's filename is not decoration: it is the compatibility contract. pip decides whether a wheel can be installed on your machine by reading its tags from the filename and checking them against the list of tags your interpreter supports. When you see No matching distribution found for a package that clearly exists on PyPI, this is usually why.
Anatomy of a wheel filename
charset_normalizer-3.5.2-cp313-cp313-manylinux_2_17_x86_64.whl
└─── name ───────┘ └ver┘ └py─┘ └abi┘ └──── platform ─────┘| Tag | Meaning | Examples |
|---|---|---|
| Python tag | which implementation and version the code needs | py3 (any Python 3), cp313 (CPython 3.13), pp310 (PyPy 3.10) |
| ABI tag | which binary interface compiled code expects | none (no compiled code), cp313 (CPython 3.13's ABI), abi3 (the stable ABI, works on later versions too), cp313t (free-threaded build) |
| Platform tag | OS and CPU | any, manylinux_2_28_x86_64, musllinux_1_2_aarch64, macosx_11_0_arm64, win_amd64 |
A tag part can hold several values separated by dots, meaning "any of these": six-1.17.0-py2.py3-none-any.whl supports Python 2 and 3, and the charset_normalizer wheel in this course's index is really named …-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (three spellings of compatible Linux platforms).
manylinux deserves a word. A Linux wheel can't name a distribution, so it names the oldest glibc it needs: manylinux_2_28_x86_64 runs on any x86-64 Linux with glibc 2.28 or newer (Debian 10+, Ubuntu 20.04+, RHEL 8+). Alpine uses musl instead of glibc and needs musllinux wheels.
What does your interpreter accept?
pip can print the ordered list of tags it will accept, most preferred first. The command is meant for debugging (it warns that its format may change), so here it's trimmed to the interesting part:
python3 -m venv .venv && . .venv/bin/activate
pip debug --verbose 2>/dev/null | grep -E '^(sys.version|sys.platform)'
pip debug --verbose 2>/dev/null | sed -n '/^Compatible tags/,$p' | sed -n '1,4p;$p'
ldd --version | head -1sys.version: 3.13.17 (main, Oct 21 2026, 17:49:22) [Clang 23.1.3 ]
sys.platform: linux
Compatible tags: 1147
cp313-cp313-manylinux_2_39_x86_64
cp313-cp313-manylinux_2_38_x86_64
cp313-cp313-manylinux_2_37_x86_64
py30-none-any
ldd (Ubuntu GLIBC 2.39-0ubuntu8.8) 2.39
The container's glibc is 2.39, so the most specific tag is manylinux_2_39, and every older manylinux level down to manylinux_2_5 follows, then abi3 variants, then the pure-Python fallbacks ending in py30-none-any. pip installs the wheel whose tags appear earliest in this list.
The same list is available from Python through the packaging library, which is what pip itself uses under the hood:
python3 -m venv .venv && . .venv/bin/activate
pip install -q packaging==26.3
python - <<'PY'
from packaging import tags
supported = list(tags.sys_tags())
print(len(supported), "tags, best first:")
for t in supported[:3]:
print(" ", t)
for wheel_tag in ["cp313-cp313-manylinux_2_28_x86_64", "cp312-abi3-manylinux_2_17_x86_64",
"cp313-cp313-win_amd64", "py3-none-any"]:
t = next(iter(tags.parse_tag(wheel_tag)))
rank = supported.index(t) if t in supported else None
print(f"{wheel_tag:<36} {'rank ' + str(rank) if rank is not None else 'NOT compatible'}")
PY1147 tags, best first:
cp313-cp313-linux_x86_64
cp313-cp313-manylinux_2_39_x86_64
cp313-cp313-manylinux_2_38_x86_64
cp313-cp313-manylinux_2_28_x86_64 rank 12
cp312-abi3-manylinux_2_17_x86_64 rank 140
cp313-cp313-win_amd64 NOT compatible
py3-none-any rank 1133
packaging puts plain linux_x86_64 first: that's the tag of a wheel compiled on this very machine (PyPI refuses such uploads, because nobody else can be sure to run them). The abi3 wheel built for 3.12 is accepted by 3.13 (the stable ABI promises that), but ranks below an exact cp313 wheel. The Windows wheel is simply not in the list.
Watching tags filter real files
pip download can pretend to be another platform or Python version with --platform and --python-version (they require --only-binary=:all:, since pip can't build sdists for a foreign machine). The index only has the Linux CPython 3.13 wheel of charset-normalizer:
python3 -m venv .venv && . .venv/bin/activate
pip download -q --no-deps --only-binary=:all: -d linux charset-normalizer && ls linux
echo "--- pretend to be Windows"
pip download -q --no-deps --only-binary=:all: --platform win_amd64 -d win charset-normalizer 2>&1
echo "--- pretend to be Python 3.12"
pip download -q --no-deps --only-binary=:all: --python-version 3.12 -d py312 charset-normalizer 2>&1
echo "--- a pure-Python wheel works everywhere"
pip download -q --no-deps --only-binary=:all: --platform win_amd64 -d win idna && ls wincharset_normalizer-3.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
--- pretend to be Windows
ERROR: Could not find a version that satisfies the requirement charset-normalizer (from versions: none)
ERROR: No matching distribution found for charset-normalizer
--- pretend to be Python 3.12
ERROR: Could not find a version that satisfies the requirement charset-normalizer (from versions: none)
ERROR: No matching distribution found for charset-normalizer
--- a pure-Python wheel works everywhere
idna-3.20-py3-none-any.whl
The same thing happens on real PyPI when a package hasn't published wheels for a brand-new Python release yet: pip falls back to the sdist (and tries to compile it), or fails if there is none.
A runnable model: tag matching
packaging is also available in this site's in-browser Python, so you can experiment with the real parser. parse_wheel_filename splits a filename into name, version, build number and the set of tags (expanding the dotted parts):
from packaging.utils import parse_wheel_filename
from packaging.tags import Tag
linux_313 = [Tag("cp313", "cp313", "manylinux_2_28_x86_64"),
Tag("cp313", "abi3", "manylinux_2_28_x86_64"),
Tag("cp312", "abi3", "manylinux_2_28_x86_64"),
Tag("py3", "none", "manylinux_2_28_x86_64"),
Tag("py3", "none", "any")]
wheels = [
"charset_normalizer-3.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl",
"cryptography-50.0.2-cp312-abi3-manylinux_2_28_x86_64.whl",
"numpy-2.3.0-cp313-cp313-win_amd64.whl",
"six-1.17.0-py2.py3-none-any.whl",
]
for w in wheels:
name, version, build, wtags = parse_wheel_filename(w)
ranks = [linux_313.index(t) for t in wtags if t in linux_313]
verdict = f"OK (best rank {min(ranks)})" if ranks else "skip"
print(f"{name} {version}: {len(wtags)} tag(s) -> {verdict}")charset-normalizer 3.5.2: 2 tag(s) -> skip
cryptography 50.0.2: 1 tag(s) -> OK (best rank 2)
numpy 2.3.0: 1 tag(s) -> skip
six 1.17.0: 2 tag(s) -> OK (best rank 4)
The first wheel lists manylinux_2_17, which this model's supported list doesn't spell out (a real list includes every level from 2.5 up to the system's glibc); pip debug shows that a real CPython on a modern Linux accepts it.
Test yourself
What does abi3 in a wheel's ABI tag mean?
- It works only with Python 3.0
- It uses CPython's stable ABI, so it also works on later CPython versions
- It's a pure-Python wheel
- It needs three ABIs installed
A manylinux_2_28_x86_64 wheel will install on…
- Only glibc 2.28 exactly
- x86-64 Linux with glibc 2.28 or newer
- Any Linux, including Alpine (musl)
- Linux and macOS
If a package has several compatible wheels, which does pip pick?
- The smallest
- The one whose tag appears earliest in the interpreter's supported-tags list
- The newest upload
- A random one