python 打包exe 命令及去除 cmd框

1.下载python

2.安装python,安装完成后在系统环境变量中配置python安装路径和E:\python\Scripts路径。

3.使用命令安装库 pip install pyinstaller 

4.进入你的xx.py的文件中使用该命令打包 pyinstaller -F xx.py -w

5.在dist文件下将找到打包好的exe

猜你喜欢

转载自blog.csdn.net/xmmdbk/article/details/84939390