THE FILE FIELD GUIDE
.whl

Python wheel package

Web & Development

WHL is a Python wheel distribution. Its ZIP structure does not make extraction equivalent to installation. Match Python, ABI, OS and CPU tags, then use pip in the intended environment. Diagnose unsupported-wheel errors systematically.

Main use
Installing Python packages into compatible environments
Data type
Code-bearing installation / execution format
All sections, questions and sources

Content reviewed: · Editor:Kai

Example: a practical checking sequence

Example: compare Python, ABI and platform tags and the actual interpreter for an unsupported wheel. Obtain the correct build rather than changing cp tags. Install through the intended environment’s python -m pip and test there; a virtual environment is not a security sandbox.

Opening steps

Choose your environment or purpose to see its steps.

Inspect metadata and compatibility

Inspection and installation are separate.

  1. Verify publisher and filename compatibility tags.
  2. Check target Python version, implementation, OS and architecture.
  3. Inspect archive listings or metadata without executing package code.
Install with pip in a virtual environment

Identify the intended interpreter explicitly.

  1. Verify package and dependencies and activate the intended environment.
  2. Use that interpreter’s python -m pip to install the local wheel.
  3. Verify package information and required behavior in the same environment.

Menu labels and support vary by app, OS and version. Preserve the original before making changes.

Troubleshooting by symptom

  • Unsupported wheel: compare Python, ABI and platform tags.
  • Installed into another Python: align pip with the intended interpreter.
  • Architecture mismatch: check the interpreter as well as the OS.
  • Missing dependencies: inspect declared requirements and environment.
  • Renaming cp tags cannot change binaries; obtain a compatible build.

Choose a compatible wheel build

  1. Identify Python version, OS and CPU.
  2. Select the publisher’s compatible wheel and install into the intended environment.
  3. Document compatibility and dependencies for handoff.

Changing filename tags does not fix compatibility; building from source is a separate workflow.

Three compatibility tags

Wheel names contain Python, ABI and platform tags. Distinguish generic pure-Python wheels from interpreter/platform-specific binary builds.

Source for these steps:Python Packaging Authority · Platform compatibility tags

Align pip with the environment

A bare pip command may target another interpreter; invoking it as a module of the intended Python makes the target explicit.

  • Check the target version before installing.
  • Obtain dependencies from trusted distribution.
  • Avoid indiscriminate system-wide installation.

Source for these steps:pip project · pip install / Python Packaging Authority · Binary distribution format

Related-format differences

Related-format differences
Format / purposeUse and preserved information
WHLBuilt distribution for installation.
PYPython source code.
ZIPGeneric archive without equivalent installation semantics.

Handling and security

Wheels can contain Python code and native libraries. Virtual environments are not security sandboxes; verify provenance.

Questions and answers

Does extracting it install it?

No; installation and dependency management are separate.

Can I change the cp tag?

No; obtain a compatible build.

Is 64-bit Windows enough?

Check interpreter, ABI and CPU too.

Why use python -m pip?

To target the intended interpreter.

Is an unknown wheel safe in a virtual environment?

No; virtual environments do not provide security isolation.

Format facts: name, steward and MIME type
Formal name
Python Wheel Distribution
Steward / specification
Python Packaging Authority
MIME type
Check the producer or implementation; do not assume a single universal MIME value.

Primary and official sources

  • StandardBinary distribution format

    Wheel ZIP structure and metadata

    Python Packaging Authority · Link checked:
  • StandardPlatform compatibility tags

    Python, ABI and platform compatibility tags

    Python Packaging Authority · Link checked:
  • Project documentationpip install

    Installing wheels into the intended Python environment

    pip project · Link checked: