文章目录
一、背景
其中,pyinstaller打包教程 可阅读此blog。
二、参考链接
三、部分编译选项释义
四、打包流程
1. 下载mingw64(注意版本,下载地址)
2. 安装nuitka
3. 编写运行脚本或直接执行编译指令
.bat脚本如下:
@echo off
call nuitka --mingw64 --standalone --show-progress --remove-output ^
--windows-icon-from-ico=.\blur.ico ^
--plugin-enable=torch,numpy,multiprocessing ^
--nofollow-imports ^
--include-plugin-directory=xxx,yyy,zzz,xxx\111,yyy\222 ^ 自己要编进去的库
--output-dir=nuitka_dist ^
main.py
pause
五、问题记录