Crew AI Project Setup
Walkthrough
-
Create a new Conda virtual environment
conda create --name flooding_alerts python=3.11
-
Activate the Conda virtual environment
conda activate flooding_alerts
-
Create a new CrewAI project
crewai create flooding_alerts
This creates a ready made crewai project structure, containing agents, tasks, config etc.
-
Open the new CrewAI project in VSCode
cd flooding_alerts
code .
-
Enter the poetry shell
poetry shell
-
Update the poetry config so that the virtual environment resides within the current project directory
poetry config virtualenvs.path ./.venv
-
Add additional dependencies
poetry add crewai_tools
poetry add langchain_community
-
Lock the poetry dependency versions
poetry lock
-
Install dependencies
poetry install
-
Run the CrewAI project
poetry run flooding_alerts