PyInstaller
PyInstaller
可以将 python script 打包成可执行文件。
安装
pip install pyinstaller
使用
pyinstaller
文档 : https://pyinstaller.readthedocs.io/en/stable/usage.html
打包成单个文件
pyinstaller -F test.py
解决vcruntime140.dll没有被指定在Windows上运行(1)
关闭upx即可
pyinstaller -F --noupx test.py
解决vcruntime140.dll没有被指定在Windows上运行(2)
开启upx
upx下载
: https://github.com/upx/upx/releases ,将upx.exe添加到环境变量<