Maia Pelletier commited on
Commit ·
9f9eb0f
1
Parent(s): ae4672c
remove temp technical document
Browse files- SETUP_PATH.md +0 -70
SETUP_PATH.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
| 1 |
-
# Fixing Python PATH on Windows
|
| 2 |
-
|
| 3 |
-
Your Python 3.12 is installed but not in your PATH. Here's how to fix it:
|
| 4 |
-
|
| 5 |
-
## Quick Fix (Temporary - Current Session Only)
|
| 6 |
-
|
| 7 |
-
For now, you can use these commands:
|
| 8 |
-
- `py -m pip` instead of `pip`
|
| 9 |
-
- `py` instead of `python`
|
| 10 |
-
- `C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312\python.exe` for direct access
|
| 11 |
-
|
| 12 |
-
## Permanent Fix - Add Python to PATH
|
| 13 |
-
|
| 14 |
-
### Method 1: Using Windows Settings (Recommended)
|
| 15 |
-
|
| 16 |
-
1. **Open System Environment Variables:**
|
| 17 |
-
- Press `Win + X` and select "System"
|
| 18 |
-
- Click "Advanced system settings"
|
| 19 |
-
- Click "Environment Variables" button
|
| 20 |
-
|
| 21 |
-
2. **Edit PATH:**
|
| 22 |
-
- Under "User variables" (or "System variables" if you want it for all users), find and select "Path"
|
| 23 |
-
- Click "Edit"
|
| 24 |
-
- Click "New" and add these two paths:
|
| 25 |
-
```
|
| 26 |
-
C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312
|
| 27 |
-
C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312\Scripts
|
| 28 |
-
```
|
| 29 |
-
- Click "OK" on all dialogs
|
| 30 |
-
|
| 31 |
-
3. **Restart your terminal/PowerShell** for changes to take effect
|
| 32 |
-
|
| 33 |
-
### Method 2: Using PowerShell (Run as Administrator)
|
| 34 |
-
|
| 35 |
-
```powershell
|
| 36 |
-
[Environment]::SetEnvironmentVariable(
|
| 37 |
-
"Path",
|
| 38 |
-
[Environment]::GetEnvironmentVariable("Path", "User") + ";C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312;C:\Users\DanielSimeone\AppData\Local\Programs\Python\Python312\Scripts",
|
| 39 |
-
"User"
|
| 40 |
-
)
|
| 41 |
-
```
|
| 42 |
-
|
| 43 |
-
Then restart your terminal.
|
| 44 |
-
|
| 45 |
-
### Method 3: Reinstall Python with "Add to PATH" option
|
| 46 |
-
|
| 47 |
-
If you reinstall Python, make sure to check "Add Python to PATH" during installation.
|
| 48 |
-
|
| 49 |
-
## Verify It Works
|
| 50 |
-
|
| 51 |
-
After adding to PATH and restarting your terminal, test:
|
| 52 |
-
|
| 53 |
-
```bash
|
| 54 |
-
python --version
|
| 55 |
-
pip --version
|
| 56 |
-
```
|
| 57 |
-
|
| 58 |
-
Both should work without errors.
|
| 59 |
-
|
| 60 |
-
## For This Project
|
| 61 |
-
|
| 62 |
-
You can run the app using:
|
| 63 |
-
```bash
|
| 64 |
-
py app.py
|
| 65 |
-
```
|
| 66 |
-
|
| 67 |
-
Or after fixing PATH:
|
| 68 |
-
```bash
|
| 69 |
-
python app.py
|
| 70 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|