For whatever reason, you might find yourself in an environment that has Python 2.6, but pip for Python 2.4 or 2.7. Where do you find pip for Python 2.6? Well, that’s not to hard. Go to https://bootstrap.pypa.io/get-pip.py and run the following:
sudo python2.6 get-pip.py
Then you can install Python 2.6 modules with pip by saying,
sudo pip2.6 install awesome-sauce