Wednesday, December 30, 2015

Python: Install Pyinstaller Package

Summary

PyInstaller is a program that freezes (packages) Python programs into stand-alone executables, under Windows, Linux, Mac OS X, FreeBSD, Solaris and AIX. Its main advantages over similar tools are that PyInstaller works with Python 2.7 and 3.3—3.5, it builds smaller executables thanks to transparent compression, it is fully multi-platform, and use the OS support to load the dynamic libraries, thus ensuring full compatibility.
The main goal of PyInstaller is to be compatible with 3rd-party packages out-of-the-box. This means that, with PyInstaller, all the required tricks to make external packages work are already integrated within PyInstaller itself so that there is no user intervention required. You'll never be required to look for tricks in wikis and apply custom modification to your files or your setup scripts. As an example, libraries like PyQt, Django or matplotlib are fully supported, without having to handle plugins or external data files manually. Check our compatibility list of Supported Packages for details.

Installing

之前已经安装pip,此时需要下载pyinstaller安装包(下载地址见参考文献[2]),Windows之CMD环境中先将当前目录设定在安装文件夹之下,输入pip install pyinstaller,安装完成返回结果如Fig. 1,安装成功。
Fig. 1

References

No comments:

Post a Comment