title: What is causing ImportError: No module named pkg_resources after upgrade of Python on os X?
body: <p>I just updated Python to 2.6.4 on my Mac. 
  I installed from the dmg package.</p>
  
  <p>The binary did not seem to correctly set my Python path, so I added <code>'/usr/local/lib/python2.6/site-packages'</code> in <code>.bash_profile</code></p>
  
  <pre><code>&gt;&gt;&gt; pprint.pprint(sys.path)  
  ['',
  '/Users/Bryan/work/django-trunk', 
  '/usr/local/lib/python2.6/site-packages',  
  '/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',  
  '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',  
  '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',  
  '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',  
  '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',  
  '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',  
  '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',  
  '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',  
  '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages']
  </code></pre>
  
  <p>Apparently that is not all the required paths because I can't run iPython.</p>
  
  <pre><code>$ ipython  
  Traceback (most recent call last):  
    File "/usr/local/bin/ipython", line 5, in &lt;module&gt;  
    from pkg_resources import load_entry_point  
  ImportError: No module named `pkg_resources`
  </code></pre>
  
  <p>I've done Google searches and I can't really figure out how to install <code>pkg_resources</code> or make sure it's on the path.</p>
  
  <p>What do I need to do to fix this?</p>