install.bat
862 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
37
38
39
40
41
@echo off
echo Installing Etsy Customer Notify Tool...
REM 检查Python版本
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.7+ from https://www.python.org/
pause
exit /b 1
)
REM 检查pip
pip --version >nul 2>&1
if errorlevel 1 (
echo ERROR: pip is not available
pause
exit /b 1
)
REM 升级pip
echo Upgrading pip...
python -m pip install --upgrade pip
REM 安装依赖
echo Installing requirements...
pip install -r requirements.txt
REM 检查Chrome浏览器
where chrome >nul 2>&1
if errorlevel 1 (
echo WARNING: Chrome browser not found in PATH
echo Please ensure Chrome is installed for web automation
)
REM 创建数据目录
if not exist "data" mkdir data
echo Installation completed!
echo Run "run.bat" to start the application
pause