diff --git a/build-cuda.bat b/build-cuda.bat index bfbf6f5..4805aff 100644 --- a/build-cuda.bat +++ b/build-cuda.bat @@ -13,7 +13,8 @@ if /i "%INSTALL_CUDA%"=="y" ( echo Installing PyTorch with CUDA 12.1 support... REM Uninstall CPU-only version if present - uv pip uninstall -y torch + REM Note: uv doesn't support -y flag, it uninstalls without confirmation + uv pip uninstall torch 2>nul REM Install CUDA-enabled PyTorch REM This installs PyTorch with bundled CUDA runtime diff --git a/build-cuda.sh b/build-cuda.sh index 5d2719f..fb1fc7f 100755 --- a/build-cuda.sh +++ b/build-cuda.sh @@ -15,7 +15,8 @@ if [[ $REPLY =~ ^[Yy]$ ]] then echo "Installing PyTorch with CUDA 12.1 support..." # Uninstall CPU-only version if present - uv pip uninstall -y torch + # Note: uv doesn't support -y flag, it uninstalls without confirmation + uv pip uninstall torch 2>/dev/null || true # Install CUDA-enabled PyTorch # This installs PyTorch with bundled CUDA runtime