0

Please how can i import the module pygame? I've been trying it for my python 32-35 but not working. Please help.

Python

27th Feb 2020, 11:34 AM
Salami Tohir Toyin
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.
27th Feb 2020, 12:28 PM
Ruben Eekhof
Ruben Eekhof - avatar
+ 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")
27th Feb 2020, 2:53 PM
Seb TheS
Seb TheS - avatar
+ 1
you need a laptop to run pygame, i suggest you buy one before trying it.
28th Feb 2020, 5:13 AM
Shen Bapiro
Shen Bapiro - avatar