使用cx_Freeze时没有名为Zope.interface的模块错误

时间:2016-03-14 18:42:57

标签: python twisted zope.interface

我使用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和其他模块

1 个答案:

答案 0 :(得分:-1)

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

pip install zope.interface

还使用pip强制重新安装:

pip install 'zope.interface==3.6.0' --force-reinstall
相关问题