install python packages in python shell

56

install python packages in python shell -

import subprocess
import sys

def install(package):
    subprocess.check_call([sys.executable, "-m", "pip", "install", package])

how to install python libraries -

python -m pip install SomePackage

Comments

Submit
0 Comments