installing pygame in windows code example
Example 1: install pygame
python3 -m pip install pygame <<<(mac)>>>
or
python -m pip install pygame <<<(windows)>>>
or
sudo apt install python3-pygame <<<(ubuntu)>>>
Example 2: installing pygame
try:
pip install pygame
if doesn't work ;)
try:
pip3 install pygame
Check more about pygame in the link below.