Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.9.0
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 pipinstead ofpippyinstead ofpythonC:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312\python.exefor direct access
Permanent Fix - Add Python to PATH
Method 1: Using Windows Settings (Recommended)
Open System Environment Variables:
- Press
Win + Xand select "System" - Click "Advanced system settings"
- Click "Environment Variables" button
- Press
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
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