Skip to content

strands-agent in cloudshell

0

python3.11 --version i get the 3.11.13 now i can install the starnds-agent on this 3.11 version how to execute which command i can give?this is my cloudshell image

asked a year ago216 views

1 Answer
0
Accepted Answer

Yes, you can install Strands Agents on Python 3.11 in AWS CloudShell. Since you've already verified that Python 3.11.13 is available, you can proceed with the installation.

To install Strands Agents on Python 3.11, use the following command:

python3.11 -m pip install strands-agents strands-agents-tools

This will install the Strands Agents SDK specifically for your Python 3.11 environment.

After installation, you can create a Python script (e.g., agent.py) with your agent code and then run it using:

python3.11 -u agent.py

Make sure you have the necessary AWS credentials configured in your CloudShell environment, especially if your agent will be using Amazon Bedrock models. If you're using specific models like Claude from Anthropic, you'll need to ensure you have access to those models in your AWS account.

Remember that AWS CloudShell provides 1 GB of persistent storage, so your installations will persist between sessions.
Sources
cloudshell upgrade | AWS re:Post
Introducing Strands Agents, an Open Source AI Agents SDK | AWS Open Source Blog
Run code in Code Interpreter from Agents - Amazon Bedrock AgentCore

answered a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.