使用pyInstaller打包py文件为exe文件

这是👉使用pyInstaller打包py文件为exe文件👈的摘要

安装 pip install pyinstaller

①, 打包成一个文件:

_ python pyinstaller.py --onefile yourprogram.py
②,修改exe的图标(D:\BabyWandH\src\faviconw.ico为图标的存放路径):
python pyinstaller.py --onefile --icon=D:\BabyWandH\src\faviconw.ico yourprogram.py _

updatedupdated2023-01-292023-01-29
点击刷新