title: AWS Lambda Python package - no module named redis
body: <p>I have a <code>python</code> package that I would like to upload to <code>AWS Lambda</code>.
  The package works on two different machines with no dependencies issues at all.</p>
  
  <p>However, when uploading the same folder to <code>AWS Lambda</code>, I get the following error:</p>
  
  <blockquote>
    <p>Unable to import module 'tweet_analyzer_python/lambda_handler': No module named redis</p>
  </blockquote>
  
  <p>Here is a list of the files in the package:</p>
  
  <pre><code>.
  |-- event.json
  |-- lambda_handler.py
  |-- redis
  |   |-- client.py
  |   |-- client.pyc
  |   |-- _compat.py
  |   |-- _compat.pyc
  |   |-- connection.py
  |   |-- connection.pyc
  |   |-- exceptions.py
  |   |-- exceptions.pyc
  |   |-- __init__.py
  |   |-- __init__.pyc
  |   |-- lock.py
  |   |-- lock.pyc
  |   |-- sentinel.py
  |   |-- utils.py
  |   `-- utils.pyc
  |-- redis-2.10.5-py2.7.egg-info
  |   |-- dependency_links.txt
  |   |-- installed-files.txt
  |   |-- PKG-INFO
  |   |-- SOURCES.txt
  |   `-- top_level.txt
  |-- retrying-1.3.3-py2.7.egg-info
  |   |-- dependency_links.txt
  |   |-- installed-files.txt
  |   |-- PKG-INFO
  |   |-- requires.txt
  |   |-- SOURCES.txt
  |   `-- top_level.txt
  |-- retrying.py
  |-- retrying.pyc
  |-- six-1.10.0-py2.7.egg-info
  |   |-- dependency_links.txt
  |   |-- installed-files.txt
  |   |-- PKG-INFO
  |   |-- SOURCES.txt
  |   `-- top_level.txt
  |-- six.py
  `-- six.pyc
  </code></pre>
  
  <p>For double-checking, I have downloaded the same <code>zip</code> file that was uploaded to <code>AWS Lambda</code> and put it on a clean linux machine. 
  When running:</p>
  
  <blockquote>
    <p>python tweet_analyzer_python/lambda_handler</p>
  </blockquote>
  
  <p>I had no issues at all.</p>
  
  <p>Can someone explain me what am I doing wrong?</p>
  
  <p>Thanks!</p>