Conda
- Install anaconda
- This repo was tested on a Mac with python=3.10.
- Create an environment:
conda create -n oreilly-gemini python=3.10 - Activate your environment with:
conda activate oreilly-gemini - Install requirements with:
pip install -r requirements/requirements.txt - Setup your openai API key
Pip
-
Create a Virtual Environment: Navigate to your project directory. Make sure you have python3.10 installed! If using Python 3's built-in
venv:python -m venv oreilly-geminiIf you're usingvirtualenv:virtualenv oreilly-gemini -
Activate the Virtual Environment:
- On Windows::
.\oreilly-gemini\Scripts\activate - On macOS and Linux::
source oreilly-gemini/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.examplefile to.envand add your OpenAI API key.
OPENAI_API_KEY=<your openai api key>conda install jupyter -ypython -m ipykernel install --user --name=oreilly-gemini
Here are the notebooks available in the notebooks/ folder:
Additional resources can be found in:
notebooks/assets-resources/- Supporting assets and resources