Install python-pygame by entering the following commands in the terminal:
sudo apt update sudo apt install python-pygame
Description:
SDL bindings for games development in Python
A multimedia development kit for Python. Pygame provides modules for you to access the video display, play sounds, track time, read the mouse and joystick, control the CD player, render true type fonts and more. It does this using mainly the cross-platform SDL library, a lightweight wrapper to OS-specific APIs. . This package also includes Pygame's API documentation and examples.
Homepage: http://www.pygame.org/
Version: 1.9.1release+dfsg-10build1
Section: universe/python