Pygame error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Pygame error

When I input pygame codes, I always get an error stating no pygame module. How do I fix it

12th May 2024, 12:08 AM
Enoch Pappah
Enoch Pappah - avatar
3 Answers
+ 3
Try what Brentspine suggested on your compiler/interpreter. I don't think this is possible with the Sololearn compiler.
12th May 2024, 11:43 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
import os os.run(“pip -qq install pygame”)
12th May 2024, 12:59 AM
Brentspine
Brentspine - avatar
+ 1
It works, i tested it. Important is the -qq
12th May 2024, 11:53 AM
Brentspine
Brentspine - avatar