pip Cheat Sheet/Force source install

Install from source instead of wheels.

Section: Builds and Wheels

Force source install

bash
bash
python -m pip install --no-binary :all: lxml
Explanation

Useful when you need local compilation or want to validate source builds.

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
Require binary wheels
Only install wheel distributions.
OpenIn sheetbashsame section
Build wheel artifacts
Build wheels into a directory without installing.
OpenIn sheetbashsame section
Install from a wheel file
Install a local wheel artifact.
OpenIn sheetbashsame section
Show pip version
Print the installed pip version and Python path.
Install a package
Install the latest version of a package.
Check dependency health
Report broken or incompatible installed dependencies.