当我使用 pip 21.1 安装本地 python 包时(pip install .
)我收到弃用警告:
DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
我不明白什么意思。
另外,我该如何修复它?
简而言之,我的理解:
- pip 构建包之间的依赖关系树。
- 目前 pip 需要一个临时文件夹
- 这有时会导致问题,特别是如果涉及相对路径,see here https://github.com/pypa/pip/issues/9819.
为了解决这个问题并且附加问题 https://github.com/pypa/pip/issues/9819。他们将改变 pip install 的行为。因此,要测试这是否会以任何方式影响您,您可以在使用之前进行测试--use-feature=in-tree-build
正如@Jason Harrison 所描述的。
正如警告中提到的,有一个 github 讨论更详细地解释了它here https://github.com/pypa/pip/issues/7555.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)