Python打包工具 PyInstaller

fmms 13年前
     PyInstaller 是一个用来将 Python 程序打包成一个独立可执行软件包,支持 Windows、Linux 和 Mac OS X。    <br />    <div id="header">     <a id="logo" href="/misc/goto?guid=4959500597349420237"><img alt="Python打包工具 PyInstaller" src="https://simg.open-open.com/show/18617c444c7510fc8134bd57bcd338de.png" width="500" height="100" /></a>    </div>    <h2 id="Features">功能特性:</h2>    <ul>     <li>Packaging of Python programs into standard executables, that work on computers without Python installed.</li>     <li>Multiplatform: works under      <ul>       <li>Windows (32-bit and 64-bit),</li>       <li>Linux (32-bit and 64-bit),</li>       <li>Mac OS X (32-bit only, 64-bit in svn, see <a class="wiki" href="/misc/goto?guid=4959500597432060586">Features/MacOsCompatibility</a>) and</li>       <li>experimentally Solaris and AIX (in svn).</li>      </ul> </li>     <li>Multiversion: works under any version of Python from 2.2 up to 2.7.</li>     <li>Flexible packaging mode:      <ul>       <li>Single directory: build a directory containing an executable plus all the external binary modules (.dll, .pyd, .so) used by the program.</li>       <li>Single file: build a single executable file, totally self-contained, which runs without any external dependency.</li>       <li>Custom: you can automate PyInstaller to do whatever packaging mode you want through a simple script file in Python.</li>      </ul> </li>     <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 <a class="wiki" href="/misc/goto?guid=4959500597517758543">SupportedPackages</a>).</li>     <li>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.).</li>     <li>Partial directory EGG support: required .egg directories are automatically inspected for dependencies and bundled, but egg-specific features will not work at runtime. </li>     <li>Automatic support for binary libraries used through ctypes (see <a class="wiki" href="/misc/goto?guid=4959500597591891166">Features/CtypesDependencySupport</a> for details).</li>     <li>Support for automatic binary packing through the well-known <a class="ext-link" href="/misc/goto?guid=4959500597684244719"><span class="icon"> </span>UPX</a> compressor.</li>     <li>Optional console mode (see standard output and standard error at runtime).</li>     <li><strong>Windows-specific features</strong>:      <ul>       <li>Support for <a class="wiki" href="/misc/goto?guid=4959500597754800515">code-signing executables</a>.</li>       <li>Full automatic support for CRTs: no need to manually distribute MSVCR*.DLL, redist installers, manifests, or anything else; <strong>true</strong> one-file applications that work everywhere! (see <a class="wiki" href="/misc/goto?guid=4959500597839889850">Features/Python26Win</a>)</li>       <li>Selectable executable icon.</li>       <li>Fully configurable version resource section and manifests in executable.</li>       <li>Support for building COM servers.</li>      </ul> </li>     <li><strong>Mac-specific features</strong>:      <ul>       <li>Support for bundles (see <a class="wiki" href="/misc/goto?guid=4959500597432060586">Features/MacOsCompatibility</a>)</li>      </ul> </li>    </ul>    <br />    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326205922468" target="_blank">http://www.open-open.com/lib/view/home/1326205922468</a></p>