PyInstaller - Distributing Python Code

Download python eBook

Syntax

  • pyinstaller [options] script [script ...] | specfile

Remarks

PyInstaller is a module used to bundle python apps in a single package along with all the dependencies. The user can then run the package app without a python interpreter or any modules. It correctly bundles many major packages like numpy, Django, OpenCv and others.

Some important points to remember:

  • Pyinstaller supports Python 2.7 and Python 3.3+
  • Pyinstaller has been tested against Windows, Linux and Mac OS X.
  • It is NOT cross compiler. (A Windows app cannot be packaged in Linux. You've to run PyInstaller in Windows to bundle an app for Windows)

Homepage Official Docs

Related Examples

Stats

71 Contributors: 3
Friday, October 21, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook