Installing pygame


Martin McBride, 2021-03-04
Tags game development
Categories pygame
In Python libraries

Installing pygame is quite easy, simply use pip:

pip install pygame

pygame doesn't have any additional dependencies so that should just work.

There is even a simple built-in game to check that things are working properly:

python3 -m pygame.examples.aliens
If you found this article useful, you might be interested in the book Computer Graphics in Python or other books by the same author.