使用pyinstaller工具打包Python文件为exe时,pyinstaller的命令:
打包过程在一篇中:[打包exe] (https://blog.youkuaiyun.com/L_0000/article/details/88816053)
https://blog.youkuaiyun.com/L_0000/article/details/88816053
常用:
-i 给应用程序添加图标
-F 指定打包后只生成一个exe格式的文件
-D –onedir 创建一个目录,包含exe文件,但会依赖很多文件(默认选项)
-c –console, –nowindowed 使用控制台,无界面(默认)
-w –windowed, –noconsole 使用窗口,无控制台
-p 添加搜索路径
参考点这里:
参考一