Install pygame. Pygame is a module wrapper for SDL, that lets you create games in python. To intall pygame, you need to use the python package installer (pip). By default, if you install python, it should come with pip, but in case you do not have pip, go to https://www.python.org/downloads/ and download the python installer. Open up the python installer and make sure you check 'add python.exe to PATH', and then click on custom installation, and make sure that pip is checked. Then click next, and install.
Open up your terminal/command prompt.
To check if pip is installed, just type in pip --version.
To install pygame, try any of the following commands:
pip install pygame
python -m pip install pygame
pip3 install pygame
python3 -m pip install pygame
py install pygame
You should receive the message that pygame was successfully installed. You can also confirm this by typing in pip list, or python -m pip list. This will show you the python packages and versions you have installed.
Finally, create a python file, and add 'import pygame'. Save and run the file and you should see the pygame version number, as well as a greeting 'Hello from the pygame community'.
Other links:
How to install Python for VS Code: https://youtu.be/9o4gDQvVkLU?si=hujtQkP18gBzOXKZ
Pygame Tutorial Playlist: https://youtube.com/playlist?list=PLnKe36F30Y4alXrjE6oL5VWtDsYdONpfj&si=-qNgHH_pphIoiTiU
Github for Pygame Tutorial Code: https://github.com/ImKennyYip/pygame
Python Object Oriented Programming Playlist: https://www.youtube.com/playlist?list=PLnKe36F30Y4Ykmi2jE28BZahMgPAV3Dzv
Python Game Projects Tutorial Playlist: https://www.youtube.com/playlist?list=PLnKe36F30Y4bamRi07AOYS1qGDv_2MGMW
Pygame Website: https://www.pygame.org