Python venv Project Setup Cheat Sheet/Install project editable from pyproject

Install the current project into the venv in editable mode.

Section: pyproject.toml patterns

Install project editable from pyproject

bash
bash
python -m pip install -e .
Explanation

Useful for app and library development using modern metadata.

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 pyproject.toml patterns
Minimal pyproject.toml example
Basic modern packaging metadata for a local project.
OpenIn sheettomlsame section
Install editable with dev extras
Install project plus optional development dependencies.
OpenIn sheetbashsame section
Create project and venv
Create a project folder and initialize a virtual environment.
Typical README quick-start block
Copy-paste setup commands for local onboarding.
OpenIn sheetmarkdown
Ignore the local venv in Git
Add the environment directory to .gitignore.
OpenIn sheetgitignore
Makefile setup target
Automate local environment setup for contributors.
OpenIn sheetmakefile