title: Python Wand and ImageMagick on AWS Lambda
body: <p>Trying to run Wand on AWS Lambda for some simple image manipulation.  </p>
  
  <p>So far I've:</p>
  
  <ol>
  <li>created an instance that's identical to lambda environment</li>
  <li><p>installed imagemagick from source</p>
  
  <pre><code>wget ImageMagick
  cd ImageMagick-...
  ./configure --prefix=/home/ec2-user/im --without-x
  make &amp;&amp; make install
  </code></pre></li>
  <li><p>set MAGICK_HOME to <code>/home/ec2-user/im/</code></p></li>
  <li><p><code>pip install wand</code></p></li>
  </ol>
  
  <p>but when I try to import wand.image I get:</p>
  
  <pre><code>import wand.image
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/ec2-user/cv/local/lib64/python2.7/site-packages/wand/image.py", line 20, in &lt;module&gt;
      from .api import MagickPixelPacket, libc, libmagick, library
    File "/home/ec2-user/cv/local/lib64/python2.7/site-packages/wand/api.py", line 206, in &lt;module&gt;
      'Try to install:\n  ' + msg)
  ImportError: MagickWand shared library not found.
  You probably had not installed ImageMagick library.
  Try to install:
    http://docs.wand-py.org/en/latest/guide/install.html
  </code></pre>
  
  <p>It works fine when I do a <code>yum install ImageMagick</code>, but since I want to bundle it I thought I'd need to include the binary and point the wand installation to it.  </p>
  
  <p>Any thoughts?  </p>