title: Modules are installed using pip on OSX but not found when importing
body: <p>I successfully install different modules using pip and they are shown in the </p>
  
  <pre><code>pip list
  </code></pre>
  
  <p>such as:</p>
  
  <pre><code>beautifulsoup4 (4.4.1)
  requests (2.10.0)
  Scrapy (1.1.0)
  </code></pre>
  
  <h3>From Terminal</h3>
  
  <p>However, whenever I try to import it</p>
  
  <p><code>import beautifulsoup4</code> / <code>import bs4</code> or <code>import Scrapy</code> or <code>import requests</code></p>
  
  <p>the following error is shown:</p>
  
  <pre><code>$ python
  Python 2.7.5 (default, Mar  9 2014, 22:15:05) 
  [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import requests
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named requests
  </code></pre>
  
  <p><em>Update:</em> if I launch python when I am at the correct site-packages directory</p>
  
  <pre><code>$ pwd
  /usr/local/lib/python2.7/site-packages
  $ python
  Python 2.7.5 (default, Mar  9 2014, 22:15:05)
  &gt;&gt;&gt; import requests
  &gt;&gt;&gt; import bs4
  &gt;&gt;&gt; import scrapy
  </code></pre>
  
  <p>Then it works. This would solve the issue if writing directly on the Terminal. However, I have no clue about how to make it work inside a file.py, which will be the normal use.</p>
  
  <p>As far as I know, I only have Python2.7 installed.</p>
  
  <h3>From file.py</h3>
  
  <p>If I have a file.py saved in some local folder. This contains, for instance</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  </code></pre>
  
  <p>when I try</p>
  
  <pre><code>python file.py
  </code></pre>
  
  <p>I get the same error.</p>
  
  <h1>Approach</h1>
  
  <p>Same happens with any other module from the list.
  I would think pip is installing them in a directory that Python is not reading, but as per what I read, it is the correct one.</p>
  
  <p>They are all installed here:</p>
  
  <pre><code>/usr/local/lib/python2.7/site-packages
  </code></pre>
  
  <p>Output requested by Padraic Cunningham:</p>
  
  <pre><code>$ which -a pip
  /usr/local/bin/pip
  $ which -a python
  /usr/bin/python
  /usr/local/bin/python
  </code></pre>
  
  <p>Output requested by leovp:</p>
  
  <pre><code>$ pip -V
  pip 8.1.2 from /usr/local/lib/python2.7/site-packages (python 2.7)
  </code></pre>
  
  <h3>Threads already checked</h3>
  
  <p>I have checked the following threads, but unfortunately they did not help me to solve the issue:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/33899996/installing-pyside-using-pip-nmake-not-found">installing pyside using PIP - nmake not found</a></li>
  <li><a href="https://stackoverflow.com/questions/10569846/pip-installs-but-module-is-not-found">PIp installs but module is not found</a> ==> might have provided the right answer, but the links given do not work anymore</li>
  <li><a href="https://stackoverflow.com/questions/28802358/google-protobuf-installed-but-module-not-found">google.protobuf installed, but module not found</a></li>
  <li><a href="https://stackoverflow.com/questions/15052206/python-pip-install-module-is-not-found-how-to-link-python-to-pip-location">Python pip install module is not found. How to link python to pip location?</a></li>
  </ul>
  
  <p>Any ideas of what the problem is?</p>