pip install -U pyinstaller # Open a command prompt/shell window # Navigate to the directory where your .py file is located # then build your app with the following command: pyinstaller --onefile your_program.py