Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

setup: compile with Visual Studio 2019/2022, not a newer one installed next to it

Niko12210be1ee9df38d
diff --git a/setup.py b/setup.py
index 71644a6a1..de1f51a5a 100644
--- a/setup.py
+++ b/setup.py
@@ -471,7 +471,9 @@ def find_vcvars():
vswhere = Path(os.environ.get("ProgramFiles(x86)", r"C:\Program Files (x86)")) / "Microsoft Visual Studio/Installer/vswhere.exe"
if not vswhere.exists():
return None
- p = out([str(vswhere), "-latest", "-products", "*", "-requires",
+ # CUDA 13 accepts Visual Studio 2019 and 2022 only: a newer one (2026 = version 18) installed next to them
+ # must not be picked ("unsupported Microsoft Visual Studio version"); with only a newer one there is none
+ p = out([str(vswhere), "-latest", "-products", "*", "-version", "[16.0,18.0)", "-requires",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64", "-property", "installationPath"]).strip()
v = Path(p) / "VC/Auxiliary/Build/vcvars64.bat" if p else None
return v if v and v.exists() else None