install python 2.7 library from pip3 code example
Example 1: pip install for python 2 and python3
$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python3.2 get-pip.py
Example 2: install pip3 for python 3.7
sudo apt install python3-pip
$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python3.2 get-pip.py
sudo apt install python3-pip