How can I make a Python script standalone executable to run without ANY dependency?

后端 未结 19 2789
眼角桃花
眼角桃花 2020-11-21 04:51

I\'m building a Python application and don\'t want to force my clients to install Python and modules.

So, is there a way to compile a Python script to be a standalone

19条回答
  •  闹比i
    闹比i (楼主)
    2020-11-21 05:39

    You might wish to investigate Nuitka. It takes Python source code and converts it in to C++ API calls. Then it compiles into an executable binary (ELF on Linux). It has been around for a few years now and supports a wide range of Python versions.

    You will probably also get a performance improvement if you use it. It is recommended.

提交回复
热议问题