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

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

    Yes, it is possible to compile Python scripts into standalone executables.

    PyInstaller can be used to convert Python programs into stand-alone executables, under Windows, Linux, Mac OS X, FreeBSD, Solaris, and AIX. It is one of the recommended converters.

    py2exe converts Python scripts into only executable on the Windows platform.

    Cython is a static compiler for both the Python programming language and the extended Cython programming language.

提交回复
热议问题