Python - Wheel Archive (whl - bdist_wheel)

Card Puncher Data Processing


Wheel is a compiled archive format with the .whl extension.

A wheel is a built package that can be installed without needing to go through the “build” process. Installing wheels is substantially faster for the end user than installing from a source distribution.


The binary distribution format (wheel) is defined in PEP 427.


Install wheel

Install the wheel utility.

pip install wheel
# or
python -m pip install --user --upgrade wheel
Downloading/unpacking wheel
Installing collected packages: wheel
Successfully installed wheel
Cleaning up...

# python 2
sudo yum upgrade python-setuptools
sudo yum install python-pip python-wheel
# python 3
sudo yum install python3 python3-wheel


in the scripts location

dir  C:\Users\gerard\AppData\Roaming\Python\Python37\Scripts

Install a wheel package

pip install SomePackage-1.0-py2.py3-none-any.whl



Python - NumPy

The wheel archive comes from here

pip install numpy-1.9.2+mkl-cp27-none-win_amd64.whl
Unpacking c:\users\nicolasgerard\downloads\numpy-1.9.2+mkl-cp27-none-win_amd64.whl
Installing collected packages: numpy
Successfully installed numpy
Cleaning up...

Create a wheel package

See regular package building

cd ./project
python bdist_wheel

Documentation / Reference

Discover More
Card Puncher Data Processing
Python - (Shipping|Packaging)

in Python Shipping in Python is defined in the setuptools framework, that uses pip and to distribute code in the wheel format See
Card Puncher Data Processing
Python - Egg distribution (bdist_egg)

Python Eggs are a python binary distribution format. wheelDoc A “Python egg” is a logical structure embodying the release of a specific version...
Card Puncher Data Processing
Python - Packages (Archive, Distribution)

in Python Packages (or better Distribution package) are the result of the packaging of a project that may contains one or more (regular) package regular packageregular package A package is a compressed...
Python Build Artifact Setup Py
Python - Regular Package (Shipping | Packaging)

and in Python How to release regular package adapted from (they are using the setuptools framework) With python 3. where:
Card Puncher Data Processing
Python - virtualenv (Python Environment)

Python Virtual Environments allow Python packages to be installed in an isolated location for a particular project, rather than being installed globally. By default (without virtual environment), all...

Share this page:
Follow us:
Task Runner