当我使用 pip 21.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.
Run Code Online (Sandbox Code Playgroud)
我不明白什么意思。另外,我该如何解决?
@andreas 的回答链接到讨论并回答了问题。使用该标志的方法是将其包含在目标之后:
pip install . --use-feature=in-tree-build
Run Code Online (Sandbox Code Playgroud)
这与使用 --editable 标志“相同”:包的源用作安装的源,而不制作任何副本。当存储库的工作副本有大量额外的调试或二进制文件需要复制到临时位置时,这非常有用。
| 归档时间: |
|
| 查看次数: |
2181 次 |
| 最近记录: |