+ 1

How to install pygame on sololearn, if possible

I would like to try my code in python that I used the pygame library,

25th Aug 2025, 1:48 PM
Bienvni Keba
Bienvni Keba - avatar
4 Respuestas
+ 4
Quoting myself: You install modules as shown in the sample code below. However, mind that sololearn Python playground is a sandbox with limited execution time and without interactivity or GUI. [...] https://sololearn.com/compiler-playground/cyS21vqbP3Wk/?ref=app https://www.sololearn.com/discuss/3334553/?ref=app
25th Aug 2025, 2:44 PM
Lisa
Lisa - avatar
+ 2
You can install libraries on Sololearn but it won't render libs like tkinter and pygame. You may use Pydroid which is a powerful android application for python. In Pydroid, click on the menu icon on top-left, select terminal, and type `pip install pygame`. Once it's finished, you can go back and run your program
25th Aug 2025, 2:42 PM
JusticeGreen
JusticeGreen - avatar
+ 1
But I already tried with the header code for installation but the program does not display anything
25th Aug 2025, 7:00 PM
Bienvni Keba
Bienvni Keba - avatar
0
you can't use Pygame in Sololearn
25th Aug 2025, 11:50 PM
Bob_Li
Bob_Li - avatar