organic-chatbot / SETUP_PATH.md
daniel-simeone
initial app
a71ea0a

A newer version of the Gradio SDK is available: 6.9.0

Upgrade

Fixing Python PATH on Windows

Your Python 3.12 is installed but not in your PATH. Here's how to fix it:

Quick Fix (Temporary - Current Session Only)

For now, you can use these commands:

  • py -m pip instead of pip
  • py instead of python
  • C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312\python.exe for direct access

Permanent Fix - Add Python to PATH

Method 1: Using Windows Settings (Recommended)

  1. Open System Environment Variables:

    • Press Win + X and select "System"
    • Click "Advanced system settings"
    • Click "Environment Variables" button
  2. Edit PATH:

    • Under "User variables" (or "System variables" if you want it for all users), find and select "Path"
    • Click "Edit"
    • Click "New" and add these two paths:
      C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312
      C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312\Scripts
      
    • Click "OK" on all dialogs
  3. Restart your terminal/PowerShell for changes to take effect

Method 2: Using PowerShell (Run as Administrator)

[Environment]::SetEnvironmentVariable(
    "Path",
    [Environment]::GetEnvironmentVariable("Path", "User") + ";C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312;C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312\Scripts",
    "User"
)

Then restart your terminal.

Method 3: Reinstall Python with "Add to PATH" option

If you reinstall Python, make sure to check "Add Python to PATH" during installation.

Verify It Works

After adding to PATH and restarting your terminal, test:

python --version
pip --version

Both should work without errors.

For This Project

You can run the app using:

py app.py

Or after fixing PATH:

python app.py