- Python 3.12+ (recommended) or Python 3.9+
- pip and venv (usually included with Python)
- Google AI API Key - Get one from Google AI Studio
-
Clone the repository (if applicable) or navigate to the project directory:
cd bible-planner-image-generator -
Install Python 3.12 (if not already installed):
Ubuntu/Debian:
sudo apt update sudo apt install python3.12 python3.12-venv python3.12-pip
Fedora/RHEL:
sudo dnf install python3.12 python3.12-pip
Arch Linux:
sudo pacman -S python312
Or use your distribution's package manager to install Python 3.12 or later.
-
Create a virtual environment:
python3.12 -m venv .venv
Alternative: If using Python 3.9+:
python3 -m venv .venv
-
Activate the virtual environment:
source .venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Copy the
.env.examplefile to create your.envfile:cp .env.example .env
-
Edit the
.envfile and replaceYOUR_KEY_HEREwith your actual Google AI API key:# Open in your preferred editor, or use: nano .env # or vim .env
Note: The
.envfile is already in.gitignoreto keep your API key secure.
Option 1 - Run directly (uses venv Python via shebang):
./src/main.pyOption 2 - Activate venv and run:
source .venv/bin/activate
python src/main.pyOption 3 - Use venv Python explicitly:
.venv/bin/python src/main.pyNote: Make sure the script is executable:
chmod +x src/main.py