python - 'easy_install' 期间发出的警告

标签 python warnings easy-install

当我easy_install一些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

有时会被发射。

这些消息来自哪里(什么包/源文件)?为什么引用 __file____path__ 被认为是一件坏事?

最佳答案

easy_install 不喜欢使用 __file____path__ 并不是因为它们很危险,而是因为几乎使用它们的软件包压缩鸡蛋总是用不完。

easy_install 发出警告,因为它将“效率较低”地安装到解压缩的目录而不是压缩的鸡蛋中。

在实践中,当 zip_safe 检查失败时,我通常会很高兴,因为那样的话,如果我需要深入研究模块的源代码,那就容易多了。

关于python - 'easy_install' 期间发出的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2298403/

相关文章:

Python - 计算 Pandas 数据框中的非字母数字字符

python - 向此类 python 函数传递更多参数

.net - 警告 : Found conflicts between different versions of the same dependent assembly

python - easy_install-3.2.exe 对比 easy_install.exe?

python - 由于 SSL,使用 easy)install 安装 pip 和其他库失败

python - 安装工具/distutils : Installing files into the distribution's DLLs directory on Windows

python - 如何在Python中规范化复杂的嵌套json?

python - 为什么从实例获取类属性会引发 AttributeError?

ruby - "assigned but unused"什么时候成为Ruby的警告?

linux - 计算常量时出现范围检查错误