我尝试使用 pyinstaller 编译我的 python 工作,使用命令:
pyinstaller.py -F zchat_server.py
并收到错误消息:
F:\workplace\Python\network-study\zchat\dist>zchat_server.exe
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "D:\pyinstaller-2.0\PyInstaller\loader\iu.py", line 386, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "D:\pyinstaller-2.0\PyInstaller\loader\iu.py", line 480, in doimport
exec co in mod.__dict__
File "F:\workplace\Python\network-study\zchat\build\pyi.win32\zchat_server\out
00-PYZ.pyz\twisted", line 53, in <module>
File "F:\workplace\Python\network-study\zchat\build\pyi.win32\zchat_server\out
00-PYZ.pyz\twisted", line 37, in _checkRequirements
ImportError: Twisted requires zope.interface 3.6.0 or later: no module named zop
e.interface.
我是新手,我编译了我的 zchat_view.py(使用 wxPython),它工作得很好。但是对于 Twisted,我很困惑。希望得到解决。