【问题标题】:no module named Zope.interface error when using cx_Freeze [duplicate]使用 cx_Freeze 时没有名为 Zope.interface 的模块 [重复]
【发布时间】:2016-03-14 18:42:57
【问题描述】:

我使用twisted 和其他几个模块创建了一个modbus 服务器脚本。 在 Anaconda spyder 工具中,脚本工作正常,但是当我使用 cx_freeze 工具创建 exe 文件时,出现以下错误。

Twisted requires zope.interface 3.6.0 or later: no module named zope.interface

请帮我找到解决办法。

注意:我已经在 anaconda 命令提示符下使用 pip install 安装了 twisted 和其他模块

【问题讨论】:

  • 这与py2exepyinstallerpy2app 的其他问题基本相同。如果没有解决您的问题,请查看引用的副本并重新打开。

标签: python twisted zope.interface


【解决方案1】:

您可以使用 pip 在模块上安装所需的版本:

pip install zope.interface

还可以使用 pip 强制重新安装:

pip install 'zope.interface==3.6.0' --force-reinstall

【讨论】:

  • 请不要使用==3.6.0。就pip install zope.interface;有更多更新、更好的版本可用。
猜你喜欢
  • 2017-03-27
  • 1970-01-01
  • 1970-01-01
  • 2015-08-25
  • 2017-08-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多