-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup-python-env.ps1
More file actions
55 lines (47 loc) · 2.01 KB
/
setup-python-env.ps1
File metadata and controls
55 lines (47 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Python Environment Setup Script (PowerShell)
Write-Host ""
Write-Host "========================================" -ForegroundColor Green
Write-Host " PYTHON ENVIRONMENT SETUP" -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Green
Write-Host ""
# Check if venv exists
if (Test-Path "env") {
Write-Host "✓ Virtual environment 'env' already exists" -ForegroundColor Green
} else {
Write-Host "Creating Python virtual environment..." -ForegroundColor Yellow
python -m venv env
Write-Host "✓ Virtual environment created" -ForegroundColor Green
}
Write-Host ""
Write-Host "========================================" -ForegroundColor Green
Write-Host " ACTIVATING ENVIRONMENT" -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Green
Write-Host ""
# Activate virtual environment
& .\env\Scripts\Activate.ps1
Write-Host "✓ Environment activated!" -ForegroundColor Green
Write-Host ""
Write-Host "Current Python:" -ForegroundColor Yellow
python --version
Write-Host ""
Write-Host "========================================" -ForegroundColor Green
Write-Host " INSTALLING DEPENDENCIES" -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Green
Write-Host ""
# Install requirements
pip install -r requirements-all.txt
Write-Host ""
Write-Host "========================================" -ForegroundColor Green
Write-Host " ✓ SETUP COMPLETE!" -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Green
Write-Host ""
Write-Host "Your Python environment is ready!" -ForegroundColor Green
Write-Host ""
Write-Host "Now you can run:" -ForegroundColor Yellow
Write-Host " cd apps\dev-os-automation" -ForegroundColor Cyan
Write-Host " python -m src.main" -ForegroundColor Cyan
Write-Host ""
Write-Host "Or:" -ForegroundColor Yellow
Write-Host " cd apps\dev-voice-system" -ForegroundColor Cyan
Write-Host " python -m src.main" -ForegroundColor Cyan
Write-Host ""