py2exe - generate single executable file

前端 未结 9 1032
野的像风
野的像风 2020-11-22 01:45

I thought I heard that py2exe was able to do this, but I never figured it out. Has anyone successfully done this? Can I see your setup.py file, and what command line optio

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 02:10

    No, it's doesn't give you a single executable in the sense that you only have one file afterwards - but you have a directory which contains everything you need for running your program, including an exe file.

    I just wrote this setup.py today. You only need to invoke python setup.py py2exe.

提交回复
热议问题