forked from strnad/CrewAI-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_venv.bat
39 lines (34 loc) · 1.08 KB
/
install_venv.bat
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
@echo off
echo Creating virtual environment...
python -m venv venv
if %errorlevel% neq 0 (
echo Failed to create venv
exit /b %errorlevel%
)
echo Activating virtual environment...
call venv\Scripts\activate.bat
if %errorlevel% neq 0 (
echo Failed to activate venv
exit /b %errorlevel%
)
echo Installing requirements...
pip install -r requirements.txt --no-cache
if %errorlevel% neq 0 (
echo Failed to install requirements
exit /b %errorlevel%
)
set /p install_agentops="Do you want to install agentops? (y/n): "
if /i "%install_agentops%"=="y" (
echo Installing agentops...
pip install agentops
if %errorlevel% neq 0 (
echo Failed to install agentops
exit /b %errorlevel%
)
)
:: Check if .env file exists, if not copy .env_example to .env
if not exist "%SCRIPT_DIR%.env" (
echo .env file does not exist. Copying .env_example to .env...
copy "%SCRIPT_DIR%.env_example" "%SCRIPT_DIR%.env"
)
echo Installation completed successfully. Do not forget to update the .env file with your credentials. Then run run_venv.bat to start the app.