Python Language PyInstaller - Distributing Python Code

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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



Got any Python Language Question?