3 Réponses
+ 1
I don't think pygame is supported on SoloLearn.
If you are trying this on your own machine, don't forget to install pygame using pip first. This can for example be done in your command prompt by typing: pip install pygame after doing this you should just be able to import it normally.
+ 1
You might not have pygame installed.
If you are using windows you can install pygame on command prompt by command:
py -m pip install pygame
Or by running Python script:
import os
os.system("py -m pip install pygame")
+ 1
you need a laptop to run pygame, i suggest you buy one before trying it.