-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheck_Windows_Install.bat
39 lines (37 loc) · 1.03 KB
/
check_Windows_Install.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
39
@echo off
REM Run with specific path
"%ProgramFiles%\CMake\bin\cmake.exe" --version
REM Execute with error checking
where cmake >nul 2>nul
if %ERRORLEVEL% EQU 0 (
echo CMake is installed
) else (
echo Error! CMake is not installed. Please Install it Manually before Proceding...
timeout /t 5
)
echo Checking Python installation...
where conda >nul 2>nul
if %ERRORLEVEL% EQU 0 (
echo Python found:
conda --version
echo.
echo Checking conda environment 'facefinder'...
conda env list | find "facefinder" >nul 2>nul
if %ERRORLEVEL% EQU 0 (
conda create -n facefinder python==3.9
echo Environment 'facefinder' exists
timeout /t 4
conda activate facefinder
timeout /t 2
pip install -r src\requirements.txt
echo Done Installing Requirements! Use run-windows.bat to run FaceFinder
timeout /t 4
) else (
echo Environment 'facefinder' not found!
timeout /t 4
)
) else (
echo Error Python is not installed!!
timeout /t 5
)
pause