Python 来自 pip 的“在安装记录中找不到 .egg-info 目录”是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26091641/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 00:04:30  来源:igfitidea点击:

What does a "Could not find .egg-info directory in install record" from pip mean?

pythonpipsetuptools

提问by orome

Since updating the the most recent setuptools(6.0.1) I get an warning (yellow)

自从更新了最新的setuptools(6.0.1) 后,我收到警告(黄色)

Could not find .egg-info directory in install record for ...

for all the packages I've updated. For example, when updating Twisted I get

对于我更新的所有软件包。例如,当更新 Twisted 我得到

Could not find .egg-info directory in install record for Twisted from https://pypi.python.org/packages/source/T/Twisted/Twisted-14.0.2.tar.bz2#md5=.... in /Library/Python/2.7/site-packages

The package updates seems to succeed, however.

然而,包更新似乎成功了。

What does this warning mean? What can I do to respond to it?

这个警告是什么意思?我能做些什么来回应它?

采纳答案by orome

This appears to have been a bug introduced in 6.0.1, fixedin setuptools6.0.2.

这似乎是6.0.1 中引入的错误,已在6.0.2 中修复setuptools

回答by Antony Hatchkins

For me upgrading setuptoolsdid not work, what did work was updating pip:

对我来说升级setuptools没有用,工作是更新 pip:

pip install --upgrade setuptools pip

(I've included setuptools too to handle both problems)

(我也包含了 setuptools 来处理这两个问题)