1python3 -m pip install pygame <<<(mac)>>>
2or
3python -m pip install pygame <<<(windows)>>>
4or
5sudo apt install python3-pygame <<<(ubuntu)>>>
1# on your terminal :
2pip install pygame
3
4# check if pygame run :
5py -m pygame.examples.aliens
6# if a window is open -> pygame is correctly installed
1try:
2pip install pygame
3else:
4pip3 install pygame
5else:
6python -m pip install pygame
7else:
8python3 -m pip install pygame
9else:
10py -m pip install pygame(this is my method)
11(this is only for windows)