use pip through python code example Example 1: install pip in python python get-pip.py Example 2: how to install python libraries using pip pip install package name