pip Cheat Sheet/Require binary wheels

Only install wheel distributions.

Section: Builds and Wheels

Require binary wheels

bash
bash
python -m pip install --only-binary :all: numpy
Explanation

Useful in environments where build toolchains are unavailable.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Builds and Wheels
Force source install
Install from source instead of wheels.
OpenIn sheetbashsame section
Install from a wheel file
Install a local wheel artifact.
OpenIn sheetbashsame section
Build wheel artifacts
Build wheels into a directory without installing.
OpenIn sheetbashsame section
Install a package
Install the latest version of a package.
OpenIn sheetbash1 tag match
Install from a custom index
Use a specific package index URL.
OpenIn sheetbash1 tag match
Install a specific version
Pin installation to an exact version.
OpenIn sheetbash1 tag match