py2exe fails to generate an executable

后端 未结 11 1192
不知归路
不知归路 2020-11-28 23:23

I am using python 2.6 on XP. I have just installed py2exe, and I can successfully create a simple hello.exe from a hello.py. However, when I try using py2exe on my real prog

11条回答
  •  旧巷少年郎
    2020-11-28 23:53

    I put this in all my setup.py scripts:

    distutils.core.setup(
        options = {
            "py2exe": {
                "dll_excludes": ["MSVCP90.dll"]
            }
        },
        ...
    )
    

    This keeps py2exe quiet, but you still need to make sure that dll is on the user's machine.

提交回复
热议问题