Pandas & AWS Lambda

前端 未结 11 902
太阳男子
太阳男子 2020-12-03 04:52

Does anyone have a fully compiled version of pandas that is compatible with AWS Lambda?

After searching around for a few hours, I cannot seem to find what I\'m looki

11条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 05:08

    I managed to deploy a pandas code in aws lambda using python3.6 runtime . this is the step that i follow :

    1. Add required libraries into requirements.txt
    2. Build project in a docker container (using aws sam cli : sam build --use-container)
    3. Run code (sam local invoke --event test.json)

    this is a helper : https://github.com/ysfmag/aws-lambda-py-pandas-template

提交回复
热议问题