Python 在'期间发出的警告;易于安装';

Python 在'期间发出的警告;易于安装';,python,warnings,easy-install,Python,Warnings,Easy Install,当我easy\u安装一些python模块时,会出现如下警告: <some module>: module references __file__ <some module>: module references __path__ <some module>: module MAY be using inspect.trace <some module>: module MAY be using inspect.getsourcefile :模块引

当我
easy\u安装一些python模块时,会出现如下警告:

<some module>: module references __file__
<some module>: module references __path__
<some module>: module MAY be using inspect.trace
<some module>: module MAY be using inspect.getsourcefile
:模块引用文件__
:模块引用\uuu路径__
:模块可能正在使用inspect.trace
:模块可能正在使用inspect.getsourcefile
有时会被释放出来


这些消息来自何处(哪个包/源文件)?为什么引用
\uuuu文件
\uuuu路径被认为是一件坏事?

简易安装不喜欢使用
\uu文件
\uuu路径并不是因为它们很危险,而是因为使用它们的软件包几乎总是没有拉链蛋

easy\u install
是一个警告,因为它将“效率较低”地安装到解压目录而不是压缩鸡蛋中


在实践中,当zip_安全检查失败时,我通常会感到高兴,因为这样一来,如果我需要深入了解模块的源代码,那就容易多了。

我不会为此担心。正如durin42所指出的,这仅仅意味着setuptools在将鸡蛋放入站点包时不会压缩鸡蛋。如果您不想看到这些消息,我相信您可以使用
-Z
标志来
easy\u install
。这将使它总是解开鸡蛋的拉链


我建议使用。它使您可以少处理许多不必要的输出。

如果有人想知道,关于
-Z
--always unzip(-Z)不要作为zipfile安装,不管发生什么事。
)。虽然-Z确实意味着总是安装unzip,但它仍然会发出警告(至少对我来说是这样)。