简体   繁体   中英

Pyinstaller import error: zope.interface not found

I am trying to create standalone exe of twisted application using PyInstaller. Everything is ok, even executable file is getting build, but its not working. I mean if try to execute it gives error 'Import error: Twisted requires zope.interface 3.6.0 or later: no module named zope.interface."

I already have installed zope.interface 4.1.0. Also twisted application is running fine, with 'python ' But at the time of building executable file Pyinstaller is unble to import zope.interface.

How to solve this issue?

Thank you in advance.

finally problem solved. Problem is zope.interface is not getting added in PYTHONPATH. Actually I have tried different setups (like pip & exe), though it was not getting added. Exact reason I don't know. But after installing zope.interface using 'easy_install ', it is added in PYTHONPATH & I am able to create executable file.

Thank you for taking interest.

也许会对您的问题有所帮助: http : //github.com/kpdyer/fteproxy/issues/66

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM