+ 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
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
+ 4
Did you check this out?
https://sololearn.com/compiler-playground/chhdtN8IaqdX/?ref=app
+ 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"))
+ 1
Looks like they need to update...