PyGame is a set of Python modules designed for writing games. It uses the SDL library to allow you to create games and multimedia programs in Python. PyGame is highly portable and runs on nearly every platform and operating system.
If you don’t already have Python3 installed download it from here. Make sure you pick the correct installer for your computer, e.g. Windows x86 or Windows x64 or
When Python is installed and confirmed to be working you can install PyGame.
There are no official precompiled pygame packages for Python 3.7 available yet, so
pip install pygame doesn’t work, but you can get a pygame wheel from: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
pygame‑1.9.3‑cp37‑cp37m‑win_amd64.whl if you have a 64-bit Python version or
pygame‑1.9.3‑cp37‑cp37m‑win32.whl if you have a 32-bit version.
Then open the command-line, navigate to the directory that contains the wheel file and install it with pip:
py -3.7 -m pip install pygame‑1.9.3‑cp37‑cp37m‑win_amd64.whl
By following these steps, you can install PyGame in Python 3.7.