Python打包工具 PyInstaller

fmms 12年前發布 | 71K 次閱讀 Python 安裝制作

PyInstaller 是一個用來將 Python 程序打包成一個獨立可執行軟件包,支持 Windows、Linux 和 Mac OS X。

功能特性:

  • Packaging of Python programs into standard executables, that work on computers without Python installed.
  • Multiplatform: works under
    • Windows (32-bit and 64-bit),
    • Linux (32-bit and 64-bit),
    • Mac OS X (32-bit only, 64-bit in svn, see Features/MacOsCompatibility) and
    • experimentally Solaris and AIX (in svn).
    </li>
  • Multiversion: works under any version of Python from 2.2 up to 2.7.
  • Flexible packaging mode:
    • Single directory: build a directory containing an executable plus all the external binary modules (.dll, .pyd, .so) used by the program.
    • Single file: build a single executable file, totally self-contained, which runs without any external dependency.
    • Custom: you can automate PyInstaller to do whatever packaging mode you want through a simple script file in Python.
    • </ul> </li>
    • Explicit intelligent support for many 3rd-packages (for hidden imports, external data files, etc.), to make them work with PyInstaller out-of-the-box (see SupportedPackages).
    • Full single-file EGG support: required .egg files are automatically inspected for dependencies and bundled, and all the egg-specific features are supported at runtime as well (entry points, etc.).
    • Partial directory EGG support: required .egg directories are automatically inspected for dependencies and bundled, but egg-specific features will not work at runtime.
    • Automatic support for binary libraries used through ctypes (see Features/CtypesDependencySupport for details).
    • Support for automatic binary packing through the well-known  UPX compressor.
    • Optional console mode (see standard output and standard error at runtime).
    • Windows-specific features:
 本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!