Apply version constraints to a direct install.
Section: Constraints and Overrides
Constrain a direct install
bash
bash
python -m pip install pandas -c constraints.txtExplanation
Lets you pin transitive versions while still installing by name.
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 Constraints and Overrides