python 使用pyinstaller打包程序

Posted sineik

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 使用pyinstaller打包程序相关的知识,希望对你有一定的参考价值。

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

安装pyinstaller库

pip install pystaller

打包程序

pyinstaller -F  *.py

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

技术分享图片

打包程序并使用指点图标

命令

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

技术分享图片

 

以上是关于python 使用pyinstaller打包程序的主要内容,如果未能解决你的问题,请参考以下文章