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