Allow a controlled range of versions.
Section: Install and Upgrade
Install with a version range
bash
bash
python -m pip install "requests>=2.31,<3"Explanation
Common in development workflows where some flexibility is acceptable.
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 Install and Upgrade