-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_env.bat
More file actions
29 lines (25 loc) · 812 Bytes
/
setup_env.bat
File metadata and controls
29 lines (25 loc) · 812 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
@echo off
echo Setting up Python Virtual Environment...
:: Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Python is not installed or not added to PATH. Please install Python 3.8+ and try again.
pause
exit /b 1
)
:: Create virtual environment
echo Creating virtual environment "venv"...
python -m venv venv
:: Activate virtual environment and install requirements
echo Activating venv and installing requirements...
call venv\Scripts\activate.bat
python -m pip install --upgrade pip
pip install -r requirements.txt
echo.
echo =======================================================
echo Setup complete! To start Jupyter Notebook, run:
echo.
echo venv\Scripts\activate
echo jupyter notebook
echo =======================================================
pause