模块脚本的 Pyinstaller

Pyinstaller for module script

我正在尝试使用 pyinstaller 使我的脚本成为 .exe。

我目前 运行 我的股票是这样的

Python -m script.script -c config.ini

是否可以使用 pyinstaller,如果可以如何使用?

我试过以下方法

Pyinstaller python -m script.script

但运气不好。

也尝试过自己构建 script.py,但是当它从其他文件夹调用其他脚本时,它不起作用。

最终使用了 py2exe,因此脚本最终为

Scrpit.exe -c settings.ini