title: Error installing pandas on lambda AWS using serverless framework
body: <p>I am trying to deploy a AWS lambda function called <code>transform_load</code> that imports pandas  using the serverless framework. I am using the requirements plugin to zip the requirements so that I won't run into memory issues.</p>
  <p>When testing the function I am getting the error below. The python and numpy versions are correct.
  The requirements are added through <code>pip freeze</code> from local env. In the serverless.yml I added the following:</p>
  <pre><code>custom:
    .....
    # Zip the python requirements due to AWS lambda memory restrictions.
    pythonRequirements:
      zip: true
  plugins:
    - serverless-python-requirements
  
  </code></pre>
  <p>That being said, I am not sure as well what is a good strategy on dealing with large libraries be it pandas or scikit on an AWS Lambda.</p>
  <p>Thanks!</p>
  <pre><code>[ERROR] ImportError: Unable to import required dependencies:
  numpy:
  
  IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
  
  Importing the numpy C-extensions failed. This error can happen for
  many reasons, often due to issues with your setup or how NumPy was
  installed.
  
  We have compiled some common reasons and troubleshooting tips at:
  
  https://numpy.org/devdocs/user/troubleshooting-importerror.html
  
  Please note and check the following:
  
    * The Python version is: Python3.7 from &quot;/var/lang/bin/python3.7&quot;
    * The NumPy version is: &quot;1.18.5&quot;
  
  and make sure that they are the versions you expect.
  Please carefully study the documentation linked above for further help.
  
  Original error was: No module named 'numpy.core._multiarray_umath'
  
  Traceback (most recent call last):
    File &quot;/var/task/serverless_sdk/__init__.py&quot;, line 134, in wrapped_handler
      return user_handler(event, context)
    File &quot;/var/task/s_transform_load.py&quot;, line 24, in error_handler
      raise e
    File &quot;/var/task/s_transform_load.py&quot;, line 19, in &lt;module&gt;
      user_handler = serverless_sdk.get_user_handler('transform.transform_load')
    File &quot;/var/task/serverless_sdk/__init__.py&quot;, line 56, in get_user_handler
      user_module = import_module(user_module_name)
    File &quot;/var/lang/lib/python3.7/importlib/__init__.py&quot;, line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1006, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 983, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 967, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 677, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 728, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;/var/task/transform.py&quot;, line 18, in &lt;module&gt;
      import pandas as pd
    File &quot;/tmp/sls-py-req/pandas/__init__.py&quot;, line 17, in &lt;module&gt;
      &quot;Unable to import required dependencies:\n&quot; + &quot;\n&quot;.join(missing_dependencies)```
  
  
  </code></pre>