0
How do you import files to SoloLearn? (PYTHONNNNNNNNN!)
How do you import files to SoloLearn?
2 Réponses
+ 6
You can't use/import local files to sololearn.
+ 1
Sololearn playground is not fully functional. For example GUI programming or other third party libraries.
But this will help
import sys
import subprocess
def install(package):
subprocess.call([sys.executable, "-m","pip","-q", "--disable-pip-version-check", "install", package])
So you can just install any module using the install function like
install("cryptography")