Asked By – raitisd
When would the
--editable option be useful with
For some projects the last line in requirements.txt is
-e .. What does it do exactly?
Now we will see solution for issue: When would the -e, –editable option be useful with pip install?
As the man page says it:
-e,--editable <path/url> Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url.
So you would use this when trying to install a package locally, most often in the case when you are developing it on your system. It will just link the package to the original location, basically meaning any changes to the original package would reflect directly in your environment.
An example run can be:
pip install -e .
pip install -e ~/ultimate-utils/ultimate-utils-proj-src/
note the second is the full path to where the
setup.py would be at.