Python venv + pip Cheat Sheet/Editable install with extras

Install development extras from pyproject or setup metadata.

Section: Editable and local installs

Editable install with extras

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

Convenient when your project defines optional 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 Editable and local installs
Editable install of current project
Install the current project in editable mode.
OpenIn sheetbashsame section
Install from a wheel file
Install a local built wheel into the venv.
OpenIn sheetbashsame section
Install from a source tarball
Install a local source distribution file.
OpenIn sheetbashsame section
Install development requirements
Install a second requirements file for dev-only tools.
OpenIn sheetbash1 tag match
Install a requirements file
Install project dependencies from requirements.txt.
Build wheels for requirements
Create wheel artifacts for dependencies.