Make a py2exe exe run without a console?

后端 未结 2 610
一整个雨季
一整个雨季 2020-12-01 12:45

Does anyone know how to make an exe with py2exe run without the black console? and bundle up all the pyd files etc into just one exe file?

2条回答
  •  自闭症患者
    2020-12-01 13:38

    from distutils.core import setup
    import py2exe, sys, os
    
    sys.argv.append('py2exe')
    
    setup(
        windows = [{'script': "pytho.py"}],
    )
    

    edited for py2exe x64 support 64-bit does not have zipping

    using: python 2.7 amd64

提交回复
热议问题