title: Pip using system python osx
body: <p>I installed python26 using macports, so the correct python on my system is <code>/opt/local/bin/python</code></p>
  
  <p>However, when I do</p>
  
  <pre><code>sudo pip install &lt;packagename&gt;
  </code></pre>
  
  <p>It gives me </p>
  
  <pre><code>sudo pip install &lt;somepackage&gt;                                           
  Exception:
  Traceback (most recent call last):
    File "/Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg/pip/basecommand.py", line 126, in main
      self.run(options, args)
    File "/Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg/pip/commands/install.py", line 215, in run
      import setuptools
  ImportError: No module named setuptools
  
  Storing complete log in /Users/navin/.pip/pip.log
  </code></pre>
  
  <p>And so, I suspect that it is using the system python. I've installed distribute (which contains setuptools) via their site instructions. I installed pip via an installer as well. I somehow managed to clobber the setuptools for the system python I think, so that's why I'm having this problem now :(</p>
  
  <p>What do I do to get pip working again?</p>