python 2.7 pip code example Example 1: install pip in python python get-pip.py Example 2: pip version pip --version