Upgrade a package to a newer version.
Section: Daily package workflow
Upgrade one package
bash
bash
python -m pip install --upgrade requestsExplanation
Upgrades the package and resolves dependencies according to pip rules.
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
Upgrade pip tooling
Upgrade pip and common packaging helpers in the environment.
Install current project in editable mode
Develop a local package without reinstalling after every change.
Install from requirements file
Install dependencies from a requirements file.