Python PyInstaller命令

来源:互联网 发布:linux telnet连接拒绝 编辑:程序博客网 时间:2024/06/05 15:56
-F,--onefile Py代码只有一个文件
 
-D,--onedir Py代码放在一个目录中(默认是这个)
 
-K,--tk 包含TCL/TK
 
-d,--debug 生成debug模式的exe文件
 
-w,--windowed,--noconsole 窗体exe文件(Windows Only)
 
-c,--nowindowed,--console 控制台exe文件(Windows Only)
 
-X,--upx 使用upx压缩exe文件
 
-oDIR,--out=DIR 设置spec文件输出的目录,默认在PyInstaller同目录
 
--icon=<FILE.ICO> 加入图标(Windows Only)
 
-vFILE,--version=FILE 加入版本信息文件

例如: python pyinstaller.py -F F:/idea/python/com/xuzc/test.py
0 0