making a python program executable

前端 未结 3 2057
被撕碎了的回忆
被撕碎了的回忆 2021-02-06 16:02
from distutils.core import setup
import py2exe, sys, os

sys.argv.append(\'py2exe\')

setup(
    options = {\'py2exe\': {\'bundle_files\': 1}},
    windows = [{\'script\         


        
3条回答
  •  旧巷少年郎
    2021-02-06 16:32

    If you can restrict your code, then Shed Skin, PyPy, or Cython make true, fast executables.

    Py2exe, PyInstaller, or bbfreeze can package Python up to 2.7 into single executables.

    Cx_Freeze packages Python up to 3.x into an executable plus many other files.

提交回复
热议问题