Python Language PyInstaller - Distributing Python Code Using Pyinstaller

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 Insert
> Step 2: And Like the video. BONUS: You can also share it!


In the simplest use-case, just navigate to the directory your file is in, and type:


Pyinstaller analyzes the file and creates:

  • A myfile.spec file in the same directory as
  • A build folder in the same directory as
  • A dist folder in the same directory as
  • Log files in the build folder

The bundled app can be found in the dist folder

There are several options that can be used with pyinstaller. A full list of the options can be found here.

Once bundled your app can be run by opening 'dist\myfile\myfile.exe'.

Got any Python Language Question?