python 打包exe

1、安装pyinstaller

pip install pyinstaller

2、执行命令

pyinstaller -F -i C:\1.ico C:\hello.py

 

如果打包过程中缺少dll报错,可能是win10原因缺少相关系统补丁

下载winsdksetup.exe安装:https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/

posted @ 2020-04-02 16:28  我会飞︿( ̄︶ ̄)︿  阅读(137)  评论(0编辑  收藏  举报