ModuleNotFoundError 'pygame', help? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

ModuleNotFoundError 'pygame', help?

Importing pygame raises an exception. [Glitch reported on mobile]

22nd Nov 2023, 4:51 PM
ElMige xd
ElMige xd - avatar
3 Answers
+ 5
It's not a glitch. Sololearn does not officially support pygame module. See this post: https://www.sololearn.com/Discuss/3249164/?ref=app There are workarounds but it's probably best to work with pygame on your local dev environment 😉
22nd Nov 2023, 5:01 PM
Keith
Keith - avatar
+ 4
Sololearn support: Not likely at all. Supporting real time graphics would require some serious improvements to the playground. Pygame is best tinkered with on a PC, but you may have some luck with replit too, if you are looking for a low effort online option. https://replit.com/languages/pygame
22nd Nov 2023, 9:21 PM
Tibor Santa
Tibor Santa - avatar
0
I hope that eventually, pygame becomes available to Sololearn...
22nd Nov 2023, 5:22 PM
ElMige xd
ElMige xd - avatar