123456789101112131415161718192021 |
- @echo off
- cd /d "%~dp0"
- curl -O https://raw.githubusercontent.com/KoboldAI/KoboldAI-Client/386fd1f03471b3af45c6de4ba266c1ed9cb76fde/umamba.exe
- :Isolation
- call conda deactivate 2>NUL
- set Path=%windir%\system32;%windir%;C:\Windows\System32\Wbem;%windir%\System32\WindowsPowerShell\v1.0\;%windir%\System32\OpenSSH\
- SET CONDA_SHLVL=
- SET PYTHONNOUSERSITE=1
- SET PYTHONPATH=
- Reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d "1" /f 2>nul
- :We do this twice the first time to workaround a conda bug where pip is not installed correctly the first time - Henk
- IF EXIST CONDA GOTO WORKAROUND_END
- umamba create --no-shortcuts -r conda -n windows -f environment.yaml -y
- :WORKAROUND_END
- umamba create --no-shortcuts -r conda -n windows -f environment.yaml -y
- umamba run -r conda -n windows pip install -r requirements.txt
- umamba run -r conda -n windows pip install -e .
- echo If there are no errors above everything should be correctly installed (If not, try running update_runtime.cmd as admin).
|