title: Can't import a module in python 2.7 even though pip says it is installed
body: <p>I've read the many posts on SO regarding using Pillow or Image instead of PIL but I'm still having trouble with this module.</p>
  
  <p>I'm running this on my MBP on 10.9.5.</p>
  
  <p>I used pip to install image 1.5.5 and Pillow 3.4.2.  However, when I go to import the module in my script, it keeps saying there's no module of that name.</p>
  
  <pre><code>first.last@localhost:/usr/local/bin&gt; pip freeze | grep Pillow
  Pillow==3.4.2
  first.last@localhost:/usr/local/bin&gt; pip freeze | grep image
  image==1.5.5
  first.last@localhost:/usr/local/bin&gt; which pip
  /usr/local/bin/pip
  first.last@localhost:/usr/local/bin&gt; which python
  /usr/local/bin/python
  
  Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12) 
  [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import image
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named image
  &gt;&gt;&gt; import PIL
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named PIL
  &gt;&gt;&gt; import Pillow
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named Pillow
  &gt;&gt;&gt; import pillow
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named pillow
  </code></pre>
  
  <p>I checked /Library/Python/2.7/site-packages and it doesn't seem like the .py files are there for pillow or image, even though pip freeze showed that image and Pillow are both installed.</p>
  
  <p>This is the contents of pip is this.  Not sure if it gives any clues to why pip thinks the modules are installed but python says it can't find it.</p>
  
  <pre><code>#!/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
      # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip'
      __requires__ = 'pip==9.0.1'
      import sys
      from pkg_resources import load_entry_point
  
      if __name__ == '__main__':
          sys.exit(
              load_entry_point('pip==9.0.1', 'console_scripts', 'pip')()
          )
  </code></pre>
  
  <p>From what I showed in my setup/environment, can anyone point me in a general direction to start fixing this problem?  Is any additional information needed to debug this some more?</p>