Please use below steps
Install pip2.7 in python2.7
$which pip2.7 -> You will not get the path
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python2.7 get-pip.py
$which pip2.7 -> You will get the path
Useful link: https://stackoverflow.com/questions/26266437/how-to-use-python2-7-pip-instead-of-default-pip
import <module>
print(<module>.__version__)
https://stackoverflow.com/questions/20180543/how-to-check-version-of-python-modules