我试图创建文件NewExistGUI2.py的可执行文件,其中GUI是使用wxpython生成的。该文件依赖于其他两个文件本地设置.py和Tryone.py公司。我参考了py2exe文档,并创建了一个设置.py文件格式:
from distutils.core import setup
import py2exe
setup(name = 'python eulexistdb module',
version = '1.0',
description = 'Python eXistdb communicator using eulexistdb module',
author = 'Sarvagya Pant',
py_modules = ['NewExistGUI2','localsettings','Tryone']
)
并在命令行中使用
^{pr2}$但我没有在dist文件夹中创建主程序NewExistGUI2.py的任何.exe文件。我现在该怎么办?在
我建议您使用以下结构创建一个模块(ExistGUI):
您的初始化.py应具有:
^{pr2}$你的设置.py应该看起来像:
然后运行python设置.pypy2exe。请确保在中包含对模块的任何要求设置.py. 另外,删除先前生成的dist目录,只是为了确定。在
希望这有帮助。在
相关问题 更多 >
编程相关推荐