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

后端 未结 19 2788
眼角桃花
眼角桃花 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条回答
  •  春和景丽
    2020-11-21 05:32

    Use Cython to convert to C, compile, and link with GCC.

    Another could be, make the core functions in C (the ones you want to make hard to reverse), compile them and use Boost.Python to import the compiled code (plus you get a much faster code execution). Then use any tool mentioned to distribute.

提交回复
热议问题