Conda
- Install anaconda
- Create an environment:
conda create -n vidhya-agents python=3.11 - Activate your environment with:
conda activate vidhya-agents - Install requirements with:
pip install -r requirements.txt(therequirements.txtfile is in therequirementsfolder) - Setup your openai API key
Pip
-
Create a Virtual Environment: Navigate to your project directory. If using Python 3's built-in
venv:python -m venv vidhya-agents
If you're using
virtualenv:virtualenv vidhya-agents
-
Activate the Virtual Environment:
- On Windows:
.\vidhya-agents\Scripts\activate
- On macOS and Linux:
source vidhya-agents/bin/activate
- On Windows:
-
Install Dependencies from
requirements.txt:pip install python-dotenv pip install -r requirements.txt
-
Setup your openai API key
Remember to deactivate the virtual environment once you're done by simply typing:
deactivate- Change the
.env.examplefile to.envand add your OpenAI API key.
python3 -m ipykernel install --user --name=vidhya-agents
- Create a file named: OAI_CONFIG_LIST containing your API keys for OpenAI as demonstrated below:
[
{
"model": "gpt-4o",
"api_key": "YOUR API KEY HERE"
}
]
For more information about the live-training, visit the official website.