Upgrade one package to the latest matching version.
Section: Install and Upgrade
Upgrade a package
bash
bash
python -m pip install --upgrade requestsExplanation
`--upgrade` tells pip to replace an installed version when a newer one is available.
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