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