Python venv Cheat Sheet/Install a pinned version

Install an exact package version.

Section: Daily package workflow

Install a pinned version

bash
bash
python -m pip install Django==5.1.4
Explanation

Use exact pins when you need deterministic app dependencies.

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 Daily package workflow
Install a package
Install one package in the active environment.
OpenIn sheetbashsame section
Install from requirements file
Install dependencies from a requirements file.
OpenIn sheetbashsame section
Upgrade pip tooling
Upgrade pip and common packaging helpers in the environment.
OpenIn sheetbashsame section
Upgrade one package
Upgrade a package to a newer version.
OpenIn sheetbashsame section
Uninstall a package
Remove a package from the environment.
OpenIn sheetbashsame section
Install current project in editable mode
Develop a local package without reinstalling after every change.
OpenIn sheetbashsame section