I installed python26 using macports, so the correct python on my system is /opt/local/bin/python
/opt/local/bin/python
However, when I do
sudo pip install
I found I needed to ln -s /opt/local/bin/pip-2.7 /opt/local/bin/pip. For some reason macports didn't built that link, even when you try activating that version of python or pip.
ln -s /opt/local/bin/pip-2.7 /opt/local/bin/pip