title: Getting PIL/Pillow 4.2.1 to upload properly to AWS Lambda Py3.6
body: <p><strong>Background</strong></p>
  
  <p>I have been struggling for the past few days to deploy a Lambda that uses Pillow, and I am deploying using Python 3.6. It may be noteworthy also that I am developing this on a Windows 10 environment.</p>
  
  <p><strong>First Attempts</strong></p>
  
  <p>I began by having pip install my packages strictly in my workspace by doing the following:</p>
  
  <pre><code>pip3 install pillow -t "D:\Work and Projects\...\...\&lt;projectdir&gt;\pillow"
  </code></pre>
  
  <p>I have other packages, and tried installing the packages in the same manor, one of them specifically was <code>praw</code> and I did so by:</p>
  
  <pre><code>pip3 install praw -t "D:\Work and Projects\...\...\&lt;projectdir&gt;\praw"
  </code></pre>
  
  <p>After zipping the contents of my project together, I uploaded my package up to Lambda and upon my first test I received the error:</p>
  
  <blockquote>
    <p>Unable to import module 'motw_lambda': cannot import name '_imaging'</p>
  </blockquote>
  
  <p>I then removed the Pillow package in an attempt to see where this issue was stemming from (Pillow or praw or one of the other packages). With Pillow removed, the execution succeeded. I then removed the <code>pillow</code> package in my package and tried:</p>
  
  <pre><code>pip3 install pillow -t "D:\Work and Projects\...\...\&lt;projectdir&gt;\PIL"
  </code></pre>
  
  <p>and</p>
  
  <pre><code>pip3 install pillow -t "D:\Work and Projects\...\...\&lt;projectdir&gt;\Pillow"
  </code></pre>
  
  <p>But got the same error with the package <code>'_imaging'</code>. </p>
  
  <p><strong>Further Attempts</strong> </p>
  
  <p>I then followed the directions per <a href="https://stackoverflow.com/questions/37987742/aws-lambda-how-to-use-pillow-library">this resource</a> and <a href="http://python-guide-pt-br.readthedocs.io/en/latest/dev/virtualenvs/" rel="noreferrer">this</a>. I also tried using <a href="http://www.simononsoftware.com/virtualenv-tutorial-part-2/" rel="noreferrer">virualenv</a> and even <a href="https://github.com/rackerlabs/lambda-uploader" rel="noreferrer">lambda-uploader</a>. </p>
  
  <p>Strange enough, <em>I get the same error!</em> I am all out of options here, and feel either I am doing something dumb, or that this is not possible on Lambda-Python3.6 currently (Although I can't image someone else <em>hasn't</em> used pillow in a py3.6-lambda yet...)</p>
  
  <p>Any info, help, or generic resources would be appreciated!</p>