no module named Zope.interface error when using cx_Freeze

2.8k Views Asked by At

I have created a modbus server script using twisted and few other modules. In Anaconda spyder tool, the script works fine but when i create exe file using cx_freeze tool, i get the below error.

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

Please help me finding a solution for this.

Note: I have installed twisted and other modules using pip install from anaconda command prompt

1

There are 1 best solutions below

1
Harsh Dattani On

You can install the required version on module using pip:

pip install zope.interface

Also force reinstall using pip:

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