+ 2

Installing modules in SL env py

i know its hardly possible here, but still. if there is any way to install models for py? Below is my attempt https://sololearn.com/compiler-playground/c45y3tfkkjoc/?ref=app

28th Jul 2025, 6:27 PM
Neo𝗩𝗶𝗺
Neo𝗩𝗶𝗺 - avatar
4 Antwoorden
+ 7
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. Hence, you won't be able to change the terminal colors through the module. https://sololearn.com/compiler-playground/cyS21vqbP3Wk/?ref=app
28th Jul 2025, 6:53 PM
Lisa
Lisa - avatar
28th Jul 2025, 6:38 PM
Ausgrindtube
Ausgrindtube - avatar
+ 4
Neo𝗩𝗶𝗺 try the following though here on sololearn the text color is not going to change... but the following does open the termcolor library import os def install(package): __import__('os').system(f"pip3 install -qq --target='/usercode' {package}") install('termcolor') from termcolor import colored print(colored("text", "green"))
13th Aug 2025, 12:19 AM
BroFar
BroFar - avatar
+ 1
Looks like they need to update...
28th Jul 2025, 6:40 PM
Ausgrindtube
Ausgrindtube - avatar