Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions docs/source/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,37 @@ 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:

```bash
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).

Expand Down Expand Up @@ -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
Expand Down