Skip to content

Generate and Install WHL

Usefull if you want to install a package in an offline environment.

From pip Package

sh
pip download <package-name> --no-deps

This will download the WHL file of the package in the current directory.

From Source Code

sh
python setup.py bdist_wheel

This will generate the WHL file in the dist directory inside the repository directory.

Install WHL File

sh
pip install <path-to-whl-file>

This will install the WHL file to the current Python environment.

References