Using Bedrock but getting error ModuleNotFoundError: No module named 'botocore'

Hi, trying crewai for the first time on a very simple demo project. When I run the crew I get the following error:

ERROR:root:LiteLLM call failed: litellm.APIConnectionError: Missing boto3 to call bedrock. Run ‘pip install boto3’.
Traceback (most recent call last):
File “/Users/tim.hines/Development/Training/deeplearning_crewai/test_project/.venv/lib/python3.11/site-packages/litellm/llms/bedrock/chat/converse_handler.py”, line 275, in completion
from botocore.credentials import Credentials
ModuleNotFoundError: No module named ‘botocore’

I have tried doing all the suggest pip installs, pip3 installs, python installs and more. Nothing will fix this error, so help much appreciated.

I am running using Visual Studio Code terminal.

Thanks.

Hi @infaddict,

Please run this in your terminal before running your crew:

uv add boto3