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

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

    I like PyInstaller - especially the "windowed" variant:

    pyinstaller --onefile --windowed myscript.py
    

    It will create one single *.exe file in a distination/folder.

提交回复
热议问题