Editable Install
PronunciationED-ih-tuh-bul IN-stawl
Definition
An editable install installs your project as a link to its source folder, so edits apply immediately without reinstalling. It is done with pip install -e ..
Where you hear it
In developer setup docs for libraries and in projects with a src layout.
Examples
Install the project in editable mode so tests import your latest code.
After an editable install the new command is available in the venv.
After the editable install, changes in the package show up in the tests right away.
Common mistake
Using it in production. It is a development convenience; production should install a real built package.
Don't confuse with
A normal install, which copies a snapshot of the code. Later edits do not change what is installed.
Say it at work
- In a meeting or chat
Run
pip install -e .[dev]to set up. - In an email or ticket
It didn't pick up my change because it wasn't an editable install.
Keep exploring
More in DevOps & Cloud