(Create a single executable file name (or name .exe or name .app).)
-c, --console, --nowindowed 控制台。无界面。默认选项。(Set up a console subsystem for standard input/output at run time. This is the default for both one-file and one-folder modes.)
-w, --windowed, --noconsole 窗体无控制台。
(On Windows and Mac OS X, do not create a console window at run time for standard input/output. (This option is ignored for other operating systems.) On Mac OS X, this option triggers the creation of an OS X application bundle.)
比方:D:\soft\python\PyInstaller-2.1>python pyinstaller.py -c -F E:\work\unity\xxx\trunk\tools\excel2json\excel2json.py
报错。依赖pywin32
2. 安装pywin32。http://sourceforge.net/projects/pywin32/files/pywin32/,下载后双击安装就可以。
3. 再次cmd下运行。D:\soft\python\PyInstaller-2.1>python pyinstaller.py -c -F E:\work\unity\xxx\trunk\tools\excel2json\excel2json.py。
成功生成exe!
生成的目标文件在pyinstaller文件夹下。