title: Python pip install module is not found. How to link python to pip location?
body: <p>I'm a newbie and I needed the pySerial and feedparser module for my projects. I'm running Mountain lion.</p>
  
  <p>I followed the following tutorial so that I could upgrade to python 2.7.3 and then use the above mentioned modules.</p>
  
  <p><a href="http://hackercodex.com/guide/python-virtualenv-on-mac-osx-mountain-lion-10.8/" rel="noreferrer">http://hackercodex.com/guide/python-virtualenv-on-mac-osx-mountain-lion-10.8/</a></p>
  
  <p>I followed this tutorial till I installed pip. Instead of installing Virtualenv. I used the following commands to install pySerial and feedparser</p>
  
  <pre><code>$ pip install pySerial
  Requirement already satisfied (use --upgrade to upgrade): pySerial in /Library/Python/2.7/site-packages
  Cleaning up...
  </code></pre>
  
  <p>I assumed that this was already present and checked it. Python seems to be importing this just fine. My python version has been upgraded to 2.7.3 btw since I installed it using homebrew as mentioned in the tutorial.</p>
  
  <p>Then I tried installing feedparser</p>
  
  <pre><code>$ pip install feedparser
  Requirement already satisfied (use --upgrade to upgrade): feedparser in /usr/local/lib/python2.7/site-packages
  Cleaning up...
  </code></pre>
  
  <p>Notice how its in the site-packages directory in the usr/local/lib.</p>
  
  <p>All of my pip installs are being installed in that directory but python does not seem to be picking them up when i try importing them. </p>
  
  <p>How do I set the path so that python also looks there as well as core directory?</p>
  
  <p>Your help will be greatly appreciated.</p>
  
  <p>I tried looking for answers here:
  <a href="https://stackoverflow.com/questions/10569846/pip-installs-but-module-is-not-found">Pip installs but module is not found</a>
  <a href="https://stackoverflow.com/questions/13891934/why-i-cant-import-beautifulsoup-on-mac-using-python-2-7-after-installing-it-by">Why I can&#39;t import beautifulsoup on mac using python 2.7 after installing it by using pip and/or easy_install?</a></p>
  
  <p>but niether of them are in the same situation as I am. I don't understand why this is happening as i edited my bash_profile with the following</p>
  
  <pre><code># Set architecture flags
  export ARCHFLAGS="-arch x86_64"
  # Ensure user-installed binaries take precedence
  export PATH=/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  # Load .bashrc if it exists
  test -f ~/.bashrc &amp;&amp; source ~/.bashrc
  </code></pre>
  
  <p>then installed homebrew and then installed python 2.7.3 through homebrew (2.7.3 is now currently running on my machine) </p>
  
  <p>I figured all pip installs would be correctly linked?</p>