当我使用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.
我不明白这是什么意思。 另外,我该怎么解决它?
--use-feature=in-tree-build
来构建您的软件包。 - Andreas~/.configs/pip/pip.conf
文件的[install]
部分中添加use-feature = in-tree-build
。不确定是否会有任何不良后果,但对我有效。 - mforbes