Comprehensive tutorial on Pyinstaller?

Brandon picture Brandon · Apr 4, 2011 · Viewed 53.3k times · Source

I'm looking for a tutorial on PyInstaller that will explain things like

  • how to create .pkg files
  • how to include/exclude modules
  • how to include data files inside the install directory.

I cannot make much sense out of the standard PyInstaller documentation.

Answer

user2042696 picture user2042696 · Nov 17, 2013

Both guides in the accepted answer seem outdated. PyInstaller now provides an executable script that allows you to do

pyinstaller your_script.py

wherever your_script.py is located - instead of the old mode of copying your your_script.py to wherever you copied the source code of PyInstaller.

Here's a brief, more recent guide that walks you through a simple Hello World example:

http://www.pythoncentral.io/pyinstaller-package-python-applications-windows-mac-linux/