-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_env.bat
More file actions
36 lines (29 loc) · 870 Bytes
/
Copy pathsetup_env.bat
File metadata and controls
36 lines (29 loc) · 870 Bytes
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
@echo off
setlocal
echo Checking for Python installation...
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Python is not installed or not in your PATH.
echo Please install Python 3.10.9 as per the README.
pause
exit /b 1
)
echo Creating virtual environment 'venv'...
if not exist "venv" (
python -m venv venv
)
echo Activating virtual environment...
call venv\Scripts\activate
echo Installing dependencies from requirements.txt...
python -m pip install --upgrade pip
pip install -r requirements.txt
echo Downloading required NLTK data...
python -c "import nltk; nltk.download('vader_lexicon')"
echo Creating output and log folders...
if not exist "output" mkdir output
if not exist "log" mkdir log
echo.
echo Environment setup is complete.
echo To activate this environment in the future, run: venv\Scripts\activate
echo.
pause