Skip to content

wheel

wheel is a command-line tool for inspecting and manipulating Python wheel .whl files, which follow the binary distribution format specification. It previously provided setuptoolsbdist_wheel build command, but setuptools 70.1 and later no longer require it, so the package is now installed only for its command-line utilities.

Installation and Setup

Install it from the Python Package Index into a virtual environment:

Language: Windows PowerShell
PS> py -m pip install wheel
Language: Shell
$ python -m pip install wheel

Key Features

  • Implements the binary distribution format specification used by installers like pip, originally approved as PEP 427.
  • Unpacks wheels while verifying hashes and file sizes against the RECORD file with wheel unpack.
  • Repacks modified wheels and regenerates RECORD with wheel pack.
  • Rewrites a wheel’s Python, ABI, and platform tags without rebuilding the package using wheel tags.
  • Converts legacy .egg archives and Windows bdist_wininst installers into wheels with wheel convert.
  • Displays a wheel’s metadata, tags, dependencies, and file listing without unpacking the archive using wheel info.

Usage

Unpack a wheel into a directory and verify it against RECORD:

Language: Shell
$ wheel unpack dist/pkg-1.2.3-py3-none-any.whl

Repack an unpacked wheel and set a new build number:

Language: Shell
$ wheel pack --build-number 2 pkg-1.2.3

Convert a legacy .egg or Windows installer into a wheel:

Language: Shell
$ wheel convert dist/pkg-1.2.3-py3.11.egg
What Are Python Wheels and Why Should You Care?

Tutorial

What Are Python Wheels and Why Should You Care?

In this tutorial, you'll learn what Python wheels are and why you should care as both a developer and end user of Python packages. You'll see how the wheel format has gained momentum over the last decade and how it has made the package installation process faster and more stable.

intermediate devops

For additional information on related topics, take a look at the following resources:


By Leodanis Pozo Ramos • Updated Sept. 14, 2026