当我安装带有pip21.1(pip install .
)的本地python包时,我会得到一个不推荐的警告:
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.
我不明白什么是什么意思。还有,我怎样才能修好它?
发布于 2021-04-28 14:03:13
发布于 2021-08-06 18:04:07
而@andreas的回答则链接到讨论中并回答了问题。使用该标志的方法是将其包含在目标之后:
pip install . --use-feature=in-tree-build
这与使用-可编辑标志“相同”:包的源被用作安装的源,而没有任何副本。当存储库的工作副本有大量额外的调试文件或二进制文件,需要复制到临时位置时,这是非常有用的。
https://stackoverflow.com/questions/67301493
复制相似问题