pygame import os windows code example Example 1: intall pygame python3 -m pip install -U pygame --user Wha? Example 2: install pygame pip install pygame