Install PyInstaller into OS X/Linux - a program converting script to binary

Distributing software to end-point machine is not an easy job:

  • Some end-points are not ON so can't be updated.
  • Software version inconsistency become worse.
  • Without professional commercial distribution software, the organization needs very professional staff to execute the work.

Python has the characteristic of easy and fast developing. The downside is that the end-point machines need Python interpreter installed and then distribute the scripts to them. So, if the Python script can be wrapped up as a binary file. It'll be much easier to deploy Python software.

Luckily, there is an open source project called PyInstaller that can achieve the goal. PyInstaller is a program that converts (packages) Python programs into stand-alone executables, under Windows, Linux, Mac OS X, Solaris and AIX.

The following is how to install PyInstaller into OS X( or Linux ) machines:

GeegoMacBook-Air-2:~ root# pip3 install https://github.com/pyinstaller/pyinstaller/archive/python3.zip  
Collecting https://github.com/pyinstaller/pyinstaller/archive/python3.zip  
  Downloading https://github.com/pyinstaller/pyinstaller/archive/python3.zip (3.1MB)
    100% |████████████████████████████████| 3.1MB 132kB/s 
Requirement already satisfied (use --upgrade to upgrade): setuptools in /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (from PyInstaller==3.0.dev1)  
Installing collected packages: PyInstaller  
  Running setup.py install for PyInstaller
Successfully installed PyInstaller-3.0.dev1  
GeegoMacBook-Air-2:~ root#