0
How to install packages in solo learning ?can you explain anyone ?
I want to install sume python packages but Not working packages installation in sololearn Can explain any one installation .
2 Answers
+ 4
U can use this
import subprocess
import sys
def install(package):
subprocess.run([sys.executable, "-m", "pip", "-q", "install", package])
subprocess.run([sys.executable, "-m", "pip", "-q", "install", "--upgrade", "pip"])
install('any module name')
+ 1
Ok I will try it