- This repo was tested on a Mac with python=3.11.
- If you are a complete beginner check the installation guides for mac and windows to setup homebrew, git and download python:
./installation-guide-mac.md
./installation-guide-windows.md
- Install anaconda or miniconda
- Create an environment:
conda create -n oreilly-automate-tasks python=3.11
- Activate your environment with:
conda activate oreilly-automate-tasks
- Install requirements with:
pip install -r requirements/requirements.txt
- Setup your Openai API key
- Setup your Anthropic API key
- Download Ollama
-
Create a Virtual Environment: Navigate to your project directory. Make sure you have python3.11 installed! If using Python 3's built-in
venv
:python -m venv oreilly-automate-tasks
If you're usingvirtualenv
:virtualenv oreilly-automate-tasks
-
Activate the Virtual Environment:
- On Windows::
.\oreilly-automate-tasks\Scripts\activate
- On macOS and Linux::
source oreilly-automate-tasks/bin/activate
- On Windows::
-
Install Dependencies from
requirements.txt
:pip install python-dotenv pip install -r ./requirements/requirements.txt
-
Setup your openai API key
Remember to deactivate the virtual environment afterwards: deactivate
- Change the
.env.example
file to.env
and add your OpenAI API key.
OPENAI_API_KEY=<your openai api key>
ANTHROPIC_API_KEY=<your claude api key>
....
conda install jupyter -y
python -m ipykernel install --user --name=oreilly-automate-tasks
Here are the notebooks available in the notebooks/
folder: