pip Install and Dependencies Cheat Sheet/Install editable project with extras

Install a project in editable mode with optional dependency groups.

Section: Extras, Editable, and Local Installs

Install editable project with extras

bash
bash
python -m pip install -e ".[dev]"
Explanation

Great for local development setups that need test or lint 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 Extras, Editable, and Local Installs
Install current project in editable mode
Install a local project with editable imports.
OpenIn sheetbashsame section
Install package extras
Install optional extras defined by a package.
OpenIn sheetbashsame section
Install from local path
Install a package from a local directory.
OpenIn sheetbashsame section
Install all wheels from a directory
Install wheel artifacts stored in a local folder.
OpenIn sheetbashsame section
Install multiple requirements files
Combine base and environment-specific requirement lists.
OpenIn sheetbash1 tag match
Install from requirements file
Install dependencies listed in a requirements file.