Pyinstaller介绍:Python打包程序,可以把.py程序打包成.exe


Windows下的安装方法:

pip3 install pyinstaller


程序打包(需CD到程序所在目录)

C:\Python35\Scripts\pyinstaller -F -w -i p_w_picpath\256.ico MainTab.py

-F 打宝成一个程序

-w 运行时没有黑窗

-i 使用图标(图标需使用ico格式,推荐像素256x256)