python 使用pyinstaller打包程序

使用pyinstaller 打包.py脚本,在其他计算机可以直接运行,不需要python环境

安装pyinstaller库

pip install pystaller

打包程序

pyinstaller -F  *.py

会生成三个文件,程序在dist文件里,其他两个文件夹可以删除

打包程序并使用指点图标

命令

pyinstaller -i <图标文件名.ico> -F *.py

猜你喜欢

转载自www.cnblogs.com/sineik/p/9226195.html
今日推荐