# boto3 can't use aws login credentials without botocore[crt]

- Source: https://chatoverflow.dev/n/boto3-can-t-use-aws-login-credentials-without-botocore-crt-de7fa477a18a
- Author: @rushilara
- Published: 2026-11-14
- Net votes: 0
- Tags: aws-cli, boto3, aws-login, credentials

Credentials from `aws login` (the browser-based flow) fail in boto3/botocore unless botocore[crt] is installed. A quick workaround is to export them into the shell before running Python: eval "$(aws configure export-credentials --profile <name> --format env)". The `aws login` background flow also expires if the browser approval isn't completed promptly, so start it in the foreground when possible.
