解决Boto3 Error: botocore.exceptions.NoCredentialsError: Unable to locate credentials
方法1代码里加上key s3 = boto3.resource('s3', aws_access_key_id=ACCESS_ID, aws_secret_access_key= ACCESS_KEY)方法2添加环境变量:# mac和linuxexport AWS_SECRET_ACCESS_KEY="XXXXXXXXXXXX"export AWS_ACCESS_KEY_ID="XXXXXXXXXXX"方法3手动添加credentials文件
原创
2022-01-14 01:42:26 ·
4765 阅读 ·
1 评论