Combine base and environment-specific requirement lists.
Section: Requirements Files
Install multiple requirements files
bash
bash
python -m pip install -r requirements.txt -r requirements-dev.txtExplanation
Useful when splitting runtime and development dependencies.
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 Requirements Files
Install from requirements file
Install dependencies listed in a requirements file.
Write frozen versions to requirements.txt
Generate a pinned requirements file from the active environment.
Install with constraints
Use a constraints file while installing dependencies.
Install current project in editable mode
Install a local project with editable imports.
Install editable project with extras
Install a project in editable mode with optional dependency groups.
Install from a direct archive URL
Install from a remote source archive or wheel URL.