how to do pip install on python code example
Example 1: how to install pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
#Once you do that, enter line 3 inside
python get-pip.py
Example 2: how to install packages inside thepython script
import sys
import subprocess
# implement pip as a subprocess:
subprocess.check_call([sys.executable, '-m', 'pip', 'install',
'<packagename>'])