I had already installed boto3
but still it gives error of no module named botocore.session
import botocore.session
ImportError: No module named botocore.session
import boto3
alone is enough to connect with a bucket. botocore.session
was used during for the previous boto 1.8 and is not accepted by boto3. you can refer the following boto3 documents http://boto3.readthedocs.io/en/latest/reference/services/s3.html#client . Here is boto 1.8 documents that mentions the use of botocore.session http://botocore.readthedocs.io/en/latest/tutorial/