title: Error with scipy: No module named `imsave`
body: <p>I am using the scipy module's <code>imread</code> and <code>imsave</code> utilities. I get the following error:</p>
  
  <blockquote>
    <p>No module named <code>imsave</code>.</p>
  </blockquote>
  
  <p>I did a little googling and figured that the error was due to PIL/Pillow not being installed. I do:</p>
  
  <pre><code>sudo pip install Pillow.
  </code></pre>
  
  <p>I get the following message:</p>
  
  <blockquote>
    <p>Requirement already satisfied: Pillow in <code>/usr/local/lib/python2.7/dist-packages</code>.</p>
  </blockquote>
  
  <p>I am importing scipy's misc functionality to use the imread and imsave function. </p>
  
  <pre><code>    import scipy.misc
      import numpy as np
      I = np.load('image.npy')
      scipy.misc.imsave('test_image.jpg',I) #The error pops up here
      J = scipy.misc.imread('test_image.jpg')
  </code></pre>
  
  <p>I reinstalled scipy after this. I still get the No module named error. </p>
  
  <p>EDIT 1: To make things clear, I uninstalled PIL by following this <a href="https://stackoverflow.com/questions/17169435/uninstalling-pil-built-from-source">link</a>. I then uninstalled scipy. But, when I run <code>sudo apt install python-scipy python-pil</code>, it says that pil is already the latest. However, it is not in the path <code>/usr/local/lib/python2.7/dist-package</code>. </p>
  
  <p>EDIT 2: To answer Mark Mikofski's questions: 
  I am using Python from the Terminal. I run the file from the Terminal. </p>
  
  <pre><code>    `which python` 
  </code></pre>
  
  <p>gives me the following output </p>
  
  <pre><code>    `/home/raghuram/bin/python`. 
  </code></pre>
  
  <p>Importing sys and doing what you tell gives the list of following outputs:</p>
  
  <pre><code>    /home/raghuram/lib/python2.7
      /home/raghuram/lib/python2.7/plat-x86_64-linux-gnu
      /home/raghuram/lib/python2.7/lib-tk
      /home/raghuram/lib/python2.7/lib-old
      /home/raghuram/lib/python2.7/lib-dynload
      /usr/lib/python2.7
      /usr/lib/python2.7/plat-x86_64-linux-gnu
      /usr/lib/python2.7/lib-tk
      /home/raghuram/local/lib/python2.7/site-packages
      /home/raghuram/lib/python2.7/site-packages
  </code></pre>
  
  <p>Scipy's version is 0.19.0</p>