我正在虚拟环境中安装一个项目。我收到错误
from zope.interface.registry import Components
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: No module named registry
此模块的版本为 4.0.5
>>> import pkg_resources
>>> pkg_resources.get_distribution("zope.interface").version
'4.0.5'
我在我的机器上尝试了同样的方法(不是虚拟环境),
>>> import pkg_resources
>>> pkg_resources.get_distribution("zope.interface").version
'4.0.1'
>>> from zope.interface.registry import Components
这里from zope.interface.registry import Components
没有给出任何错误。据此_
QUOTE: 3.8.0 (2011-09-22)
New module zope.interface.registry. This is code moved from
zope.component.registry which implements a basic nonperistent component registry
as zope.interface.registry.Components.
,它不应该给出任何错误。任何建议我在这里缺少什么或如何解决这个错误?