|
|
@echo off |
|
|
setlocal EnableExtensions |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set "ROOT=C:\Users\marco\agente_gemini\HASHIRU_6_1" |
|
|
set "VENV=%ROOT%\hashiru_6_env" |
|
|
|
|
|
|
|
|
if not exist "%VENV%\Scripts\python.exe" ( |
|
|
echo [INFO] Creating virtual environment... |
|
|
python -m venv "%VENV%" |
|
|
if errorlevel 1 ( |
|
|
echo [ERROR] Failed to create venv. Ensure Python 3.12 is on PATH. |
|
|
exit /b 1 |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
call "%VENV%\Scripts\activate" |
|
|
if errorlevel 1 ( |
|
|
echo [ERROR] Failed to activate venv. |
|
|
exit /b 1 |
|
|
) |
|
|
|
|
|
|
|
|
echo [INFO] Upgrading pip... |
|
|
python -m pip install --upgrade pip |
|
|
if errorlevel 1 ( |
|
|
echo [WARN] pip upgrade returned an error. Continuing... |
|
|
) |
|
|
|
|
|
|
|
|
if exist "%ROOT%\requirements.txt" ( |
|
|
echo [INFO] Installing dependencies from requirements.txt ... |
|
|
pip install -r "%ROOT%\requirements.txt" |
|
|
if errorlevel 1 ( |
|
|
echo [ERROR] pip install failed. Check output above. |
|
|
exit /b 1 |
|
|
) |
|
|
) else ( |
|
|
echo [WARN] requirements.txt not found at %ROOT%. |
|
|
) |
|
|
|
|
|
echo. |
|
|
echo [OK] Installed. To run: startup.bat |
|
|
endlocal |
|
|
|