我目前正在调查pyInstaller。我现在一直在使用py2exe,但是如果我只为我们的目标平台使用一个编译器,那就更好了。我的py2exe设置.py看起来像这样:
from distutils.core import setup
import py2exe
setup(
name='agent',
description='Service Test',
version='1.00.00',
service=['agent'],
console=['agent.py'],
zipfile=None,
options={ "py2exe":{
"includes":"win32service,win32serviceutil,win32event,servicemanager,autobahn",
"packages": 'twisted, autobahn',
'bundle_files': 1
},
},
)
我已经成功地编译了windows服务,但是一旦我开始使用twisted,它就失败了。 我用pyInstaller编译的命令行:
^{pr2}$尝试安装服务时遇到的错误
agent.exe?175104\twisted\python\modules.py:758:
UserWarning: C:\dist\path\agent.exe?175104 (for module twisted.web.util) not in path importer cache (PEP 302 violation - check your local configuration).
目前没有回答
相关问题 更多 >
编程相关推荐