What is an editable install (`pip install -e .`)?
BeginnerConceptEnvironments, dependencies & packaging
Answer
It installs a package that points at your source tree instead of copying files, so code changes take effect without reinstalling. pip install -e ".[dev]" also installs the dev extras (pytest, moto, ruff). It is for local development and CI tests, not for production images, where you install the built wheel.
More on Environments, dependencies & packaging
What is a virtual environment and why do we always use one?BeginnerWhat does `error: externally-managed-environment` mean?Beginner`requirements.txt` vs `pyproject.toml`: what goes where?IntermediateWhy is `pip freeze > requirements.txt` not a great lock strategy?IntermediateWhat do version specifiers like `~=`, `==`, `>=,<` mean?BeginnerWhat are `pipx` and `uv`, and when do you use them?Intermediate