Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 my_app 目录中有一个 python 应用程序。其中有许多 py 文件,如 a.py、b.py、c.py 等。我必须运行 python a.py 才能启动我的应用程序,但 a.py 依赖于 b.py 和 c.py。现在我想要一个可以启动 a.py 的 exe 文件。我想用 Nuitka 来做到这一点。请帮助我,因为我找不到相关文件:(
您应该调用唯一的命令表单目录 my_app:
nuitka --standalone --recurse-all --output-dir=deploy-nui a.py
您将把您的应用程序放入文件夹my_app/deploy-nui/a.dist
当然在使用nuitka之前你应该安装nuitka:
pip install nuitka
或者
pip3 install nuitka