Skip to content

[Bug] Failure to setup under Windows 11 #4405

Closed

Description

@markusweigand
  1. Pip install unsloth executed without problem
  2. unsloth studio setup executed
    -> Failure, see attached log:

Log:

+==============================================+
| Unsloth Studio Setup (Windows) |
+==============================================+
[OK] NVIDIA GPU detected
[OK] Windows Long Paths enabled
[OK] Git found: git version 2.44.0.windows.1
CMake not found -- installing via winget...
[OK] CMake installed
Visual Studio Build Tools not found -- installing via winget...
(This is a one-time install, may take several minutes)
Gefunden Visual Studio BuildTools 2022 [Microsoft.VisualStudio.2022.BuildTools] Version 17.14.28
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen für Pakete von Drittanbietern.
Download läuft https://aka.ms/vs/17/release/626741582_-1218794322/vs_BuildTools.exe
██████████████████████████████ 4.25 MB / 4.25 MB
Der Installer-Hash wurde erfolgreich überprüft
Paketinstallation wird gestartet...
Erfolgreich installiert
[OK] Visual Studio 17 2022 detected via filesystem (BuildTools)
cl.exe: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64\cl.exe
Driver supports up to CUDA 13.1
GPU Compute Capability = 8.9 (sm_89)
[DEBUG] Checking CUDA compatibility: toolkit=12.6 arch=sm_89
[OK] Using existing CUDA Toolkit at CUDA_PATH (nvcc: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\nvcc.exe)
Persisted CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6 to user environment
Set CUDA_PATH_V12_6 (cleared other CUDA_PATH_V* vars)
Persisted CUDA bin dir to user PATH
[INFO] CUDA VS integration missing -- copying .targets files...
[WARN] Could not copy CUDA VS integration files (may need admin)
Manual fix: copy contents of
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\extras\visual_studio_integration\MSBuildExtensions
into:
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\BuildCustomizations
[OK] CUDA Toolkit: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\nvcc.exe
CUDA_PATH = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6
CudaToolkitDir = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6
[WARN] Node/npm not found.
Installing Node.js LTS via winget...
Gefunden Node.js (LTS) [OpenJS.NodeJS.LTS] Version 24.14.0
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen für Pakete von Drittanbietern.
Download läuft https://nodejs.org/dist/v24.14.0/node-v24.14.0-x64.msi
██████████████████████████████ 30.7 MB / 30.7 MB
Der Installer-Hash wurde erfolgreich überprüft
Paketinstallation wird gestartet...
Das Installationsprogramm fordert die Ausführung als Administrator an. Es wird ein Prompt erwartet.
Erfolgreich installiert
[OK] Node v24.14.0 | npm 11.9.0
[OK] Python Python 3.11.5

--- System prerequisites ready ---

Building frontend...
[OK] Frontend built to frontend/dist
Installing OXC validator runtime...
[OK] OXC validator runtime installed

Setting up Python environment...
[OK] Using python (Python 3.11.5)
Creating virtual environment at C:\Users<redacted>.unsloth\studio.venv...
[OK] TORCHINDUCTOR_CACHE_DIR set to C:\tc (avoids MAX_PATH issues)
Installing PyTorch with CUDA support (cu130)...
Installing Triton for Windows...
[OK] Triton for Windows installed (enables torch.compile)
Running ordered dependency installation...
[====================] 10/10 finalizing
✅ Python dependencies installed

Pre-installing transformers 5.x for newer model support...
[OK] Transformers 5.x pre-installed to .venv_t5/

Installing OpenSSL dev (for HTTPS in llama-server)...
Die Quelle "msstore" erfordert, dass Sie die folgenden Vereinbarungen vor der Verwendung anzeigen.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
Die Quelle erfordert, dass die geografische Region des aktuellen Computers aus 2 Buchstaben an den Back-End-Dienst gesendet wird, damit er ordnungsgemäß funktioniert (z. B. „US“).

Gefunden OpenSSL [ShiningLight.OpenSSL.Dev] Version 3.6.1
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen für Pakete von Drittanbietern.
Dieses Paket erfordert folgende Abhängigkeiten:

Building llama.cpp with CUDA support...
This typically takes 5-10 minutes on first build.

Cloning llama.cpp...

--- cmake configure ---

[FAILED] llama.cpp build failed at step: cmake configure (0m 30.2s)
To retry: delete C:\Users<redacted>.unsloth\llama.cpp and re-run setup.

Activity

  1. FatheredPuma81 commented on Mar 18, 2026

    @FatheredPuma81

    Yep same thing... but in English!

  2. danielhanchen commented on Mar 18, 2026

    @danielhanchen
    Member

    I'm fixing - apologies!

  3. Corosauce commented on Mar 21, 2026

    @Corosauce

    Yep still broken for me too, windows 10:

    https://gist.github.com/Corosauce/f2c0a8eb53272b653e281a1e07a3edbd

    edit: installer didnt like my embedded python 3.11 in path, removing that then installing python 3.12 and running the parts that failed including venv setup got things working, unsloth studio already looks really great!

  4. XeonG commented on May 19, 2026

    @XeonG

    Found an existing package already installed. Trying to upgrade the installed package...
    No available upgrade found.
    No newer package versions are available from the configured sources.

    cmake installed
    Visual Studio Build Tools not found -- installing via winget...
    (This is a one-time install, may take several minutes)
    Found an existing package already installed. Trying to upgrade the installed package...
    No available upgrade found.
    No newer package versions are available from the configured sources.
    [ERROR] Visual Studio Build Tools could not be found or installed.
    Manual install:
    1. winget install Microsoft.VisualStudio.2022.BuildTools --source winget
    2. Open Visual Studio Installer -> Modify -> check "Desktop development with C++"
    [ERROR] unsloth studio setup failed (exit code 1)
    restoring previous environment after failed install...
    restored previous environment

    it is installed

    winget install Microsoft.VisualStudio.2022.BuildTools --source winget
    Found an existing package already installed. Trying to upgrade the installed package...
    No available upgrade found.
    No newer package versions are available from the configured sources.

  5. danielhanchen commented on Jun 18, 2026

    @danielhanchen
    Member

    This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via curl -fsSL https://unsloth.ai/install.sh | sh for Linux, Mac, WSL or irm https://unsloth.ai/install.ps1 | iex for Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions