pygame with python 3.9 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: pygame install
pip install pygame
Example 3: pip install pygame
py -m pip install -U pygame --user
Example 4: pygame linux
python3 -m pip install -U pygame --user