什么时候-e,--editable选项对pip安装有用? [英] When would the -e, --editable option be useful with pip install?

查看:1340
本文介绍了什么时候-e,--editable选项对pip安装有用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

-e--editable选项何时对pip install有用?

对于某些项目,Requirements.txt中的最后一行是-e ..它到底是做什么的?

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

推荐答案

手册页中所述:

-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.

此处此处.

这篇关于什么时候-e,--editable选项对pip安装有用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆