To install PyGame, open the local terminal in a new PyCharm project. Inside the terminal, type pip install pygame. Wait a while for everything to load, then add the following to the top of your code.
Download the Python 3 installer package from the official website and install it, if not installed previously. Run the following in the terminal to install the Pygame library pip3 install pygame ...