title: Easy_install and pip broke: pkg_resources.DistributionNotFound: distribute==0.6.36
body: <p>I was tried to upgrade pip with <code>pip install --upgrade pip</code> on OSX and pip and easy_install both dont work.</p>
  
  <p>When running pip</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/local/bin/pip", line 5, in &lt;module&gt;
      from pkg_resources import load_entry_point
    File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 2881, in &lt;module&gt;
      parse_requirements(__requires__), Environment()
    File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 596, in resolve
      raise DistributionNotFound(req)
  pkg_resources.DistributionNotFound: pip==1.3.1
  </code></pre>
  
  <p>When running easy_install</p>
  
  <pre><code>  File "/usr/local/bin/easy_install", line 5, in &lt;module&gt;
      from pkg_resources import load_entry_point
    File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 2881, in &lt;module&gt;
      parse_requirements(__requires__), Environment()
    File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 596, in resolve
      raise DistributionNotFound(req)
  pkg_resources.DistributionNotFound: distribute==0.6.36
  </code></pre>
  
  <p>How can I fix this?</p>
  
  <p><strong>UPDATE</strong>
  I found the solution.</p>
  
  <p>I did <code>cd /usr/local/lib/python2.7/site-packages &amp;&amp; ls</code></p>
  
  <p>found <code>pip-1.4.1-py2.7.egg-info</code> and <code>distribute-0.6.49-py2.7.egg</code> in the directory.</p>
  
  <p>Then the following steps fixed the issue.</p>
  
  <ol>
  <li><p>Changed the pip version to 1.4.1 in <code>/usr/local/bin/pip</code></p></li>
  <li><p>Changed distribute version to 0.6.49 in <code>/usr/local/bin/easy_install</code></p></li>
  </ol>
  
  <hr>
  
  <p>The answers on other such questions to curl ez_setup.py and install setuptools from it didnt work. It gave the following error.</p>
  
  <pre><code>Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.6.tar.gz
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 370, in &lt;module&gt;
    File "&lt;stdin&gt;", line 366, in main
    File "&lt;stdin&gt;", line 278, in download_setuptools
    File "&lt;stdin&gt;", line 185, in download_file_curl
    File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 542, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['curl', 'https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.6.tar.gz', '--silent', '--output', '/usr/bin/setuptools-1.1.6.tar.gz']' returned non-zero exit status 23
  </code></pre>