Fix Python – When would the -e, –editable option be useful with pip install?


Asked By – raitisd

When would the -e, or --editable option be useful with pip install?

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.

Some nuggets around the same here and here.

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 would be at.

This question is answered By – Anshul Goyal

This answer is collected from stackoverflow and reviewed by FixPython community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0