python3生成exe文件

1.安装 pip install pywin32

2.安装 pip install pyinstaller

3.有dw.py文件

则输入( -F:生成单个文件   -w : 是去掉命令行窗口)

pyinstaller -F -w --icon=".\\myico.ico" dw.py

ico 16*16

发布了343 篇原创文章 · 获赞 57 · 访问量 20万+

猜你喜欢

转载自blog.csdn.net/jadeshu/article/details/103760323