File size: 458 Bytes
f37ceb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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 "Activate venv"
& venv\Scripts\Activate.ps1
Write-Host "Installing dependencies..."
python -m pip install -r "requirements.txt"