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

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

    For Python 3.2 scripts, the only choice is cx_Freeze. Build it from sources; otherwise it won't work.

    For Python 2.x I suggest PyInstaller as it can package a Python program in a single executable, unlike cx_Freeze which outputs also libraries.

提交回复
热议问题