What do I use on linux to make a python program executable

后端 未结 7 682
-上瘾入骨i
-上瘾入骨i 2020-11-27 15:55

I just installed a linux system (Kubuntu) and was wondering if there is a program to make python programs executable for linux.

7条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 16:09

    You can use PyInstaller. It generates a build dist so you can execute it as a single "binary" file.

    http://pythonhosted.org/PyInstaller/#using-pyinstaller

    Python 3 has the native option of create a build dist also:

    https://docs.python.org/3/distutils/builtdist.html

提交回复
热议问题