Install Python from https://www.python.org/downloads/
Open a terminal or command prompt
Run `python -m pip install pygame`
Verify the installation with `python -c “import pygame; print(pygame.__version__)”`
If needed, use `python3 -m pip install pygame`
If needed, upgrade pip with `python -m pip install –upgrade pip`
If using a virtual environment, activate it before installing Pygame
If using Windows and `python` does not work, try `py -m pip install pygame`
If using macOS or Linux and `pip` does not work, try `pip3 install pygame`
