From 6e895fa2d76c154b7087af1fb51c1269e9437ea0 Mon Sep 17 00:00:00 2001 From: SID Date: Sat, 27 Jun 2026 15:48:21 -0400 Subject: [PATCH] docs(install): add Windows BUILD_MONAI instructions Signed-off-by: SID --- docs/source/installation.md | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/docs/source/installation.md b/docs/source/installation.md index 5123bc3e6b..0c028eb679 100644 --- a/docs/source/installation.md +++ b/docs/source/installation.md @@ -110,6 +110,18 @@ or, to build with MONAI C++/CUDA extensions: BUILD_MONAI=1 pip install git+https://github.com/Project-MONAI/MONAI ``` +On Windows, set the environment variable with your shell syntax: + +```powershell +$env:BUILD_MONAI = "1" +pip install git+https://github.com/Project-MONAI/MONAI +``` + +```bat +set BUILD_MONAI=1 +pip install git+https://github.com/Project-MONAI/MONAI +``` + To build the extensions, if the system environment already has a version of Pytorch installed, `--no-build-isolation` might be preferred: @@ -117,6 +129,18 @@ To build the extensions, if the system environment already has a version of Pyto BUILD_MONAI=1 pip install --no-build-isolation git+https://github.com/Project-MONAI/MONAI ``` +Windows equivalents: + +```powershell +$env:BUILD_MONAI = "1" +pip install --no-build-isolation git+https://github.com/Project-MONAI/MONAI +``` + +```bat +set BUILD_MONAI=1 +pip install --no-build-isolation git+https://github.com/Project-MONAI/MONAI +``` + this command will download and install the current `dev` branch of [MONAI from GitHub](https://github.com/Project-MONAI/MONAI). @@ -147,6 +171,20 @@ BUILD_MONAI=1 pip install -e . BUILD_MONAI=1 CC=clang CXX=clang++ pip install -e . ``` +On Windows: + +```powershell +cd MONAI/ +$env:BUILD_MONAI = "1" +pip install -e . +``` + +```bat +cd MONAI/ +set BUILD_MONAI=1 +pip install -e . +``` + To uninstall the package please run: ```bash