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
You should have the python and pip installed in /opt/local/bin/ prior to those installed in /usr/local/bin/.
Also, you should check to execute which python and whether the pip was installed in /opt/local/bin/pip.
which python