xxxxxxxxxx
for windows users:
press windows+r
type cmd
type py -m pip install pygame
xxxxxxxxxx
# on your terminal :
pip install pygame
# check if pygame run :
py -m pygame.examples.aliens
# if a window is open -> pygame is correctly installed
xxxxxxxxxx
#in terminal write:
pip install pygame
#OR you can install for Windows like this:
py -m pip install -U pygame --user
# check if pygame installed correctly :
py -m pygame.examples.aliens # if a window is open -> pygame is correctly installed
xxxxxxxxxx
try:
pip install pygame
else:
pip3 install pygame
else:
python -m pip install pygame
else:
python3 -m pip install pygame
else:
py -m pip install pygame(this is my method)
(this is only for windows)
xxxxxxxxxx
try:
pip install pygame
if doesn't work ;)
try:
pip3 install pygame
Check more about pygame in the link below.
xxxxxxxxxx
# on windows write in powershell:
pip install pygame
# on os write in terminal
pip install pygame