-
Install PyInstaller: To install PyInstaller, run pip install pyinstaller in your terminal or command prompt.
-
Create the executable: To create the executable, run the following command in your terminal or command prompt, replacing "your_script.py" with the name of your Pygame script:
- pyinstaller -w -F your_script.py
- Distribute the executable: The executable will be created in the dist folder in the same directory as your script. You can distribute this file to others, who can then run it on their computers without a Python environment.