forked from garagesteve1155/PowerTrader_AI
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInstall_Dependencies.bat
More file actions
46 lines (40 loc) · 1.14 KB
/
Copy pathInstall_Dependencies.bat
File metadata and controls
46 lines (40 loc) · 1.14 KB
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
39
40
41
42
43
44
45
46
@echo off
title PowerTrader AI - Install Dependencies
cd /d "%~dp0"
echo ============================================
echo PowerTrader AI - Dependency Installer
echo ============================================
echo.
:: Check if Python is available
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python was not found on your system!
echo Please install Python 3.10+ from:
echo https://www.python.org/downloads/
echo Make sure to check "Add Python to PATH"
echo.
pause
exit /b 1
)
echo Found Python:
python --version
echo.
echo Upgrading pip...
python -m pip install --upgrade pip
echo.
echo Installing required packages...
python -m pip install -r requirements.txt
echo.
if %errorlevel% equ 0 (
echo ============================================
echo All dependencies installed successfully!
echo You can now run PowerTrader.bat
echo ============================================
) else (
echo ============================================
echo Some packages failed to install.
echo Try running this file as Administrator.
echo ============================================
)
echo.
pause