AWS Lambda packaging issue with paramiko package

I use serverless for packaging AWS lambda functions and for deploying and CircleCI for CI.
In my serverless.yml file, I use serverless-python-requirements to include needed modules in the lambda package.

  1. serverless.yml plugin cofiguration


  • serverless-python-requirements`
  1. The contents of requirements.txt files is,


If I deploy this from an Amazon Linux EC2 instance everything works fine, where as if deploy using CircleCI build environment I get successful deployment, but the following error when calling the deployed lambda function. cannot open shared object file: No such file or directory

I believe this error is because of packaging in a different build environment. Can anyone help me solve this issue?