In this project I'm studying pygame based on a complete playlist of the channel DaFluffyPotato.
And reading the official documentation pygame
I'm starting from the point that you use poetry as a dependency manager.
Then run inside the folder where pyproject.tolm is located to install all dependencies:
poetry install
later:
poetry shell
Now just run the game:
python3 play.py