Installation Guide
Get AI Math Notes up and running on your machine in just a few steps. This guide covers everything from installing Python dependencies to configuring your OpenAI API credentials.Prerequisites
Before you begin, ensure you have:- Python 3.7 or higher installed on your system
- An OpenAI API key (you can get one at platform.openai.com)
- pip package manager (included with Python)
AI Math Notes uses the OpenAI GPT-4o model, which requires API credits. Make sure your OpenAI account has available credits before proceeding.
Installation Steps
Clone the Repository
Download the AI Math Notes source code from GitHub:Alternatively, download the ZIP file from the repository and extract it to your desired location.
Install Dependencies
Install the required Python libraries using pip:This will install:
pillow==10.2.0- For image processing and canvas renderingopenai==1.14.2- For connecting to OpenAI’s GPT-4o API
Set Up OpenAI API Key
Configure your OpenAI API key as an environment variable. The application uses the OpenAI Python client, which automatically reads from the To make it permanent, add this line to your On Windows (Command Prompt):On Windows (PowerShell):
OPENAI_API_KEY environment variable.On macOS/Linux:~/.bashrc, ~/.zshrc, or ~/.bash_profile:Verify Installation
Test that everything is installed correctly by running:You should see a window appear with a black canvas and three buttons at the bottom: Clear, Undo, and Calculate.If you encounter any errors, double-check that:
- All dependencies are installed (
pip listshould show pillow and openai) - Your OpenAI API key is set correctly (
echo $OPENAI_API_KEYon Unix orecho %OPENAI_API_KEY%on Windows) - You’re using Python 3.7 or higher (
python --version)
Troubleshooting
Tkinter Not Found
If you see an error about Tkinter not being installed, you may need to install it separately: On Ubuntu/Debian:OpenAI API Errors
If you see authentication errors when running the application:- Verify your API key is valid at platform.openai.com/api-keys
- Ensure the environment variable is set correctly
- Restart your terminal after setting the environment variable
- Check that your OpenAI account has available credits