ubuntu install pygame code example Example: how to install pygame using pip in ubuntu sudo apt-get install python-pygame