-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathclean-install_debug.bat
38 lines (31 loc) · 1.02 KB
/
clean-install_debug.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
@echo off
rem Check for Anaconda in the system profile
if exist "%ProgramData%\Anaconda3\Scripts\activate.bat" (
call "%ProgramData%\Anaconda3\Scripts\activate.bat" activate base
goto end
)
rem Check for Anaconda in the user profile
if exist "%userprofile%\Anaconda3\Scripts\activate.bat" (
call "%userprofile%\Anaconda3\Scripts\activate.bat" activate base
goto end
)
rem Check for Miniconda in the system profile
if exist "%ProgramData%\Miniconda3\Scripts\activate.bat" (
call "%ProgramData%\Miniconda3\Scripts\activate.bat" activate base
goto end
)
rem Check for Miniconda in the user profile
if exist "%userprofile%\Miniconda3\Scripts\activate.bat" (
call "%userprofile%\Miniconda3\Scripts\activate.bat" activate base
goto end
)
echo Error: Conda was not found in either the system or user profile.
pause
goto end
:end
call conda update -n base -c defaults conda -y
call conda activate base
call conda env remove -n ai-nodes
call conda env create -f environment-installer_debug.yaml
call conda activate ai-nodes
setup.bat