When would be -e, --editable option useful with pi

2019-01-14 07:15发布

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

For some projects last line in requirements.txt is -e .. What does it do exactly?

标签: python pip
1条回答
来,给爷笑一个
2楼-- · 2019-01-14 07:43

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.

查看更多
登录 后发表回答