title: Unable to locate freeimage after install of mahotas in Python
body: <p>Hi I am new to Python and am following the <a href="http://pythonvision.org/basic-tutorial" rel="nofollow">Python Image Tutorial</a>.</p>
  
  <p>The following executes with no errors after installing the packages described in the tutorial</p>
  
  <pre><code>import numpy
  import scipy
  import pylab
  import pymorph
  import mahotas
  from scipy import ndimage
  </code></pre>
  
  <p>However when I try reading an image</p>
  
  <pre><code>image = mahotas.imread('picture_file.jpg')
  </code></pre>
  
  <p>I get</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>image = mahotas.imread('image_file.jpg')
            Traceback (most recent call last):
            File "", line 1, in 
            File "/usr/local/lib/python2.6/dist-packages/mahotas-0.6.4-py2.6-linux-i686.egg/mahotas/<strong>init</strong>.py", line 68, in imread
            raise ImportError('mahotas.imread dependends on freeimage. Could not find it. Error was: %s' % e)
            ImportError: mahotas.imread dependends on freeimage. Could not find it. Error was: mahotas.freeimage: could not find libFreeImage in any of the following directories: 
            '/usr/local/lib/python2.6/dist-packages/mahotas-0.6.4-py2.6-linux-i686.egg/mahotas', '/lib', '/usr/lib', '/usr/local/lib', '/opt/local/lib'</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>I tried installing FreeImagePy and can import it with no problems but it does not help. I have tried adding to the Python path using package sys but not help either.</p>
  
  <p>EDIT: I should have mentioned that all the packages except pymorph and mahotas was installed
  on my linux box doing '*sudo apt-get install package_name*' while pymorph and mahotas was installed by downloading and doing '<em>sudo python setup.py install</em>'.</p>