Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions install/CPU/windows_cpu.bat
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ if "!PYTHON_EXE!"=="" (
where uv >nul 2>&1
if !errorlevel! neq 0 (
echo Installing uv...
powershell -NoProfile -Command "irm https://astral.sh/uv/install.ps1 | iex"
REM -ExecutionPolicy Bypass applies to this one PowerShell process only
REM (the system-wide policy is untouched): the uv install script refuses
REM to run under the Windows default "Restricted" policy, and fresh
REM machines would otherwise abort here with a manual
REM "Set-ExecutionPolicy" instruction.
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://astral.sh/uv/install.ps1 | iex"
)

:: Wait a moment for uv to be available
Expand All @@ -76,7 +81,13 @@ timeout /t 2 /nobreak >nul
:: Verify uv is available
where uv >nul 2>&1
if !errorlevel! neq 0 (
echo Error: uv could not be found or installed
echo Error: uv could not be found or installed.
echo If the message above mentions the PowerShell execution policy, that
echo policy is enforced system-wide on this machine ^(common on managed
echo devices^) and blocks the uv install script. Install uv manually
echo instead, e.g. with winget:
echo winget install astral-sh.uv
echo and then re-run this script.
pause
exit /b 1
)
Expand Down
15 changes: 13 additions & 2 deletions install/CUDA/windows_cuda_gpu.bat
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ if "!PYTHON_EXE!"=="" (
where uv >nul 2>&1
if !errorlevel! neq 0 (
echo Installing uv...
powershell -NoProfile -Command "irm https://astral.sh/uv/install.ps1 | iex"
REM -ExecutionPolicy Bypass applies to this one PowerShell process only
REM (the system-wide policy is untouched): the uv install script refuses
REM to run under the Windows default "Restricted" policy, and fresh
REM machines would otherwise abort here with a manual
REM "Set-ExecutionPolicy" instruction.
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://astral.sh/uv/install.ps1 | iex"
)

:: Wait a moment for uv to be available
Expand All @@ -76,7 +81,13 @@ timeout /t 2 /nobreak >nul
:: Verify uv is available
where uv >nul 2>&1
if !errorlevel! neq 0 (
echo Error: uv could not be found or installed
echo Error: uv could not be found or installed.
echo If the message above mentions the PowerShell execution policy, that
echo policy is enforced system-wide on this machine ^(common on managed
echo devices^) and blocks the uv install script. Install uv manually
echo instead, e.g. with winget:
echo winget install astral-sh.uv
echo and then re-run this script.
pause
exit /b 1
)
Expand Down
Loading