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

后端 未结 19 2787
眼角桃花
眼角桃花 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:22

    You can use py2exe as already answered and use Cython to convert your key .py files in .pyc, C compiled files, like .dll in Windows and .so on Linux.

    It is much harder to revert than common .pyo and .pyc files (and also gain in performance!).

提交回复
热议问题