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/
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/