pyinstaller打包后的exe运行怎么去掉弹出的dos窗口

1.windows平台的话,先把.py改成.pyw。

2.pyinstaller -F -w tools    2.py更换最终exe生成路径

3.pyinstaller 改变生成exe程序的图标

pyinstaller -F --icon=my.ico test.py  

my.ico 是一个图标名,和当前的test.py文件在同一个目录下

你可能感兴趣的:(python)