PyInstaller
PyInstaller is a popular utility used to convert Python scripts into standalone executables. First, we need to install PyInstaller if it isn’t already. To do this open the command prompt and type:
pip install pyinstaller
Using the command prompt, change to the project’s directory. For example
d:
cd python\deploy
Make sure all the necessary files the app uses are in the same directory, this includes data files, resources such as images, video, etc. Also make sure you have installed all modules such as PyQt, tkinter, pygame, etc.
At the command prompt, type the following command to build the app
pyinstaller --onefile invaders3.py
This will generate two main directories: the build directory and the dist directory. The build directory ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access