Skip to content

Latest commit

 

History

History
154 lines (95 loc) · 5.43 KB

File metadata and controls

154 lines (95 loc) · 5.43 KB

Windows Installation Guide

This guide walks you through installing PPT Master on Windows step by step. Follow along and you'll have a working setup in under 10 minutes.


Step 1 — Install Python (Required)

Python is the only hard requirement.

  1. Go to python.org/downloads and download the latest Python 3.10+ installer.

  2. ⚠️ CRITICAL: Check "Add python.exe to PATH" during installation — this is the single most common mistake on Windows. Skipping this will break every step that follows.

    Python installer — check Add to PATH

  3. After installation, open PowerShell (search "PowerShell" in Start menu) and verify:

    python --version

    You should see Python 3.12.x or similar. If you see "Python was not found" or it opens the Microsoft Store, see Troubleshooting below.

💡 Tip: Python installed via Anaconda or Miniconda works too — just make sure python --version shows 3.10+.


Step 2 — Download the Project

Option A — Download ZIP (easiest):

  1. Go to github.com/hugohe3/ppt-master
  2. Click the green Code button → Download ZIP
  3. Unzip to C:\Users\YourName\ppt-master

Option B — Git Clone (requires Git):

git clone https://github.com/hugohe3/ppt-master.git
cd ppt-master

Step 3 — Install Dependencies

cd C:\Users\YourName\ppt-master   # ← adjust to your actual path
pip install -r requirements.txt

If pip is not recognized, try python -m pip install -r requirements.txt.

Wait for it to finish. You should see Successfully installed ... at the end.


Step 4 — Verify Your Setup

python -c "import pptx; import fitz; print('All core dependencies OK')"

✅ Output: All core dependencies OK → you're good.

❌ Error → see Troubleshooting below.


Step 5 — Run a Minimal Example

Open your AI editor (Cursor, VS Code + Copilot, etc.), open the ppt-master folder, and type in the chat:

Please create a simple 3-page test PPT with a cover, one content page, and a closing page. Topic: "Hello World".

If a .pptx file appears in exports/ that opens in PowerPoint — you're done.


Step 6 — Optional Enhancements (most users can skip this)

With Python and requirements.txt installed, you already have everything needed to generate presentations. The items below are edge-case fallbacks and enhancements — install only if you hit the specific scenario.

Enhancement Install only if… How to install Verify
CairoSVG — higher quality PNG fallbacks You want crisper PNG fallbacks for Office versions that don't render SVG natively. svglib (already installed) is fine for most cases. Install GTK3 Runtime, then pip install cairosvg python -c "import cairosvg"
Pandoc — legacy document formats You need to convert .doc, .odt, .rtf, .tex, .rst, .org, or .typ. .docx/.html/.epub/.ipynb work natively in Python. Download .msi from pandoc.org pandoc --version

Troubleshooting

python was not found or opens Microsoft Store

Cause: Python isn't in your system PATH.

Fix 1 — Re-run the Python installer → Modify → check "Add Python to environment variables".

Fix 2 — Manually add to PATH:

  1. Run where python in PowerShell first to find the actual path (e.g. C:\Users\YourName\AppData\Local\Programs\Python\Python312\python.exe)
  2. Search "Environment Variables" in Start menu
  3. Find PathEdit → add the directory from step 1 and its Scripts subfolder:
    C:\Users\YourName\AppData\Local\Programs\Python\Python312
    C:\Users\YourName\AppData\Local\Programs\Python\Python312\Scripts
    
  4. Click OK, then restart PowerShell

Fix 3 — Try python3 or py instead.

A python3 command fails (exit 49 / opens Microsoft Store)

The python.org installer ships python.exe but not python3.exe. Just replace python3 with python in the command (the AI agent usually switches to python and continues on its own too).

pip install fails with permission errors

pip install --user -r requirements.txt

Or run PowerShell as Administrator.

pip install fails due to network issues

pip install -r requirements.txt --proxy http://your-proxy:port

ModuleNotFoundError

pip installed to a different Python. Use python -m pip install -r requirements.txt to match.

import fitz fails

  1. Upgrade pip: python -m pip install --upgrade pip
  2. Pre-built wheel: pip install PyMuPDF --only-binary :all:
  3. Still failing → install Visual C++ Build Tools

PowerShell says "running scripts is disabled"

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Still stuck?