-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall-nvidia.bat
More file actions
47 lines (37 loc) · 1.25 KB
/
install-nvidia.bat
File metadata and controls
47 lines (37 loc) · 1.25 KB
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
40
41
42
43
44
45
46
47
@echo off
setlocal
set VENV=.venv
set PYTHON_VERSION=3.12
REM Add .local\bin to PATH in case just installed UV (first thing!)
set "PATH=%USERPROFILE%\.local\bin;%PATH%"
REM Check for uv (will print nothing if found, error if not)
where uv >nul 2>nul
if %errorlevel% neq 0 (
echo UV not found, installing UV...
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
set "PATH=%USERPROFILE%\.local\bin;%PATH%"
)
where uv >nul 2>nul
if %errorlevel% neq 0 (
echo Failed to install or find UV! Please install UV and try again.
exit /b 1
)
if not exist "%VENV%\" (
echo Creating .venv with Python %PYTHON_VERSION%...
uv venv -p %PYTHON_VERSION%
if %errorlevel% neq 0 (
echo Failed to create venv. Make sure UV and Python %PYTHON_VERSION% are installed.
exit /b 1
)
) else (
echo .venv already exists, reusing it.
)
call %VENV%\Scripts\activate
echo Installing dependencies for inference and development...
uv pip install --group inference
uv pip install -e .
echo Installing PyTorch with CUDA support (CUDA 12.8 wheels)...
uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
echo Installation complete. To run Panoptikon:
echo start.bat
endlocal