1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hello.
What if you run the command below to update botocore to the latest version?
https://docs.aws.amazon.com/efs/latest/ug/install-botocore.html
sudo pip3 install botocore --upgrade
Also, since neither pandas nor s3fs are included in the Lambda package, you need to create a layer using the steps in the document below.
mkdir python
pip3 install pandas -t ./python/
pip3 install s3fs -t ./python/
zip -r lambda_layer.zip python/
aws lambda publish-layer-version --layer-name "lambda_layer_name" --zip-file fileb://lambda_layer.zip --compatible-runtimes python3.11
관련 콘텐츠
- 질문됨 8달 전
- AWS 공식업데이트됨 일 년 전
import json import boto3 import pandas as pd
def lambda_handler(event, context):
I have already run below commands: pip3 install s3fs pip3 install fs_s3fs however I got this error while running above commnd - awscli 1.29.60 requires botocore==1.31.60, but you have botocore 1.31.17 which is incompatible. boto3 1.28.60 requires botocore<1.32.0,>=1.31.60, but you have botocore 1.31.17 which is incompatible.