pyinstaller打包python成exe文件

1.安装pyinstaller


2.准备需要打包的.py文件


其中input()可以避免程序闪退

3.打包

1).cmd

2).通过cd进入pyinstaller.exe所在目录



3).


4).


5).打包的exe文件地址


6).展示结果



总结,这是最简单的python打包案例,后面会不断的进行完善总结更多的打包方面经验。

猜你喜欢

转载自blog.csdn.net/ZT_0910/article/details/80006998