

PyInstaller works out of the box with PyQt5 and as of writing, current versions of PyInstaller are compatible with Python 3.6+. If you're impatient, you can download the Example Disk Image for macOS first. app you need to do this on a Mac, for an EXE you need to use Windows.

You always need to compile your app on your target system. We finish off by building a macOS Disk Image, the usual method for distributing applications on macOS.

You can choose to follow it through completely, or skip to the parts that are most relevant to your own project. This tutorial is broken down into a series of steps, using PyInstaller to build first simple, and then more complex PyQt5 applications into distributable macOS app bundles. In this tutorial we'll look at the most popular tool for packaging Python applications: PyInstaller. The good news is there are tools available to help you do just that with your Python applications which work well with apps built using PyQt5. Sharing your apps allows other people to benefit from your hard work! There is not much fun in creating your own desktop applications if you can't share them with other people - whether than means publishing it commercially, sharing it online or just giving it to someone you know.
