Help converting .py to .exe, using py2exe
问题 The script I ran # p2e_simple_con.py # very simple script to make an executable file with py2exe # put this script and your code script into the same folder # run p2e_simple_con.py # it will create a subfolder 'dist' where your exe file is in # has the same name as the script_file with extension exe # (the other subfolder 'build' can be deleted) # note: with console code put a wait line at the end from distutils.core import setup import py2exe import sys sys.argv.append("py2exe") sys.argv