pygame version file code example Example 1: pygame install pip install pygame Example 2: pip install pygame py -m pip install -U pygame --user