这里我使用windows10 cmd。我尝试使用 Nuitka lib 将 .py 编译为 .exe,并将我自己的图标设置为未来的应用程序。无需设置图标即可完美运行,但是当我尝试使用时:
python -m nuitka --mingw64 --windows-icon-from-ico=my/path/to/the/icon.ico my/path/to/executable/file.py
对于编译,我总是会遇到一个错误,上面写着:
"FATAL:
Error, specify only one positional argument unless "--run" is specified to
pass them to the compiled program execution."