pygame debian install code example
Example 1: pygame linux
python3 -m pip install -U pygame --user
Example 2: how to install pygame using pip in ubuntu
sudo apt-get install python-pygame
python3 -m pip install -U pygame --user
sudo apt-get install python-pygame