pip Install and Dependencies Cheat Sheet/Use eager upgrade strategy

Upgrade transitive dependencies more aggressively.

Section: Resolver and Platform Controls

Use eager upgrade strategy

bash
bash
python -m pip install --upgrade --upgrade-strategy eager fastapi
Explanation

Can help bring an environment fully up to date, but may cause larger dependency changes.

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 Resolver and Platform Controls
Require wheels for a package
Only accept binary wheels for a named package.
OpenIn sheetbashsame section
Resolve for a target platform and Python
Download distributions for another platform or interpreter version.
OpenIn sheetbashsame section
Install into a target directory
Install packages into a custom filesystem path.
OpenIn sheetbashsame section
Install with constraints
Use a constraints file while installing dependencies.
OpenIn sheetbash1 tag match
Install from requirements file
Install dependencies listed in a requirements file.
Install current project in editable mode
Install a local project with editable imports.