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 setuptools’ bdist_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:
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
RECORDfile withwheel unpack. - Repacks modified wheels and regenerates
RECORDwithwheel pack. - Rewrites a wheel’s Python, ABI, and platform tags without rebuilding the package using
wheel tags. - Converts legacy
.eggarchives and Windowsbdist_wininstinstallers into wheels withwheel 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:
$ wheel unpack dist/pkg-1.2.3-py3-none-any.whl
Repack an unpacked wheel and set a new build number:
$ wheel pack --build-number 2 pkg-1.2.3
Convert a legacy .egg or Windows installer into a wheel:
$ wheel convert dist/pkg-1.2.3-py3.11.egg
Related Resources
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.
For additional information on related topics, take a look at the following resources:
By Leodanis Pozo Ramos • Updated Sept. 14, 2026