File size: 1,354 Bytes
0988a94
 
f37ceb5
0988a94
fe55b83
f37ceb5
 
0988a94
 
f37ceb5
 
0988a94
 
 
 
 
 
 
 
f37ceb5
0988a94
 
fe55b83
 
 
 
 
 
 
 
 
 
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
# Set the project directory and Virtual Environment name
$venvName = ".venv"

# Check if the Virtual Environment folder exists
$venvExists = Test-Path $venvName

if (-not $venvExists) {
    # Create Virtual Environment if it doesn't exist
    Write-Host "Creating Virtual Environment..."
    python -m venv $venvName
}

Write-Host "+--------------------------------------------------------------------------------------+"
Write-Host "Activating Virtual Environment..."

& .\.venv\Scripts\Activate.ps1

Write-Host "+--------------------------------------------------------------------------------------+"
Write-Host "Virtual Environment activated"
Write-Host "Installing dependencies..."
Write-Host "+--------------------------------------------------------------------------------------+"

try {
    python -m pip install -r "requirements.txt"
    Write-Host "+--------------------------------------------------------------------------------------+"
    Write-Host "All modules installed successfully"
    Write-Host "+--------------------------------------------------------------------------------------+"
} catch {
    Write-Host "An error occurred while installing modules: $_"
    Write-Host "Some modules might not be installed correctly."
    Write-Host "+--------------------------------------------------------------------------------------+"
}