Skip to content

Including Windows BUILD_MONAI instructions in documentation #6119

Closed

Description

@masadcv

Describe the bug
Following discussion from this comment: https://gist.github.com/masadcv/84f1bc9f505056ea8f4290d14a002d2a?permalink_comment_id=4495713#gistcomment-4495713
It would make sense to have BUILD_MONAI=1 instructions for windows users in the documentation. The current commands given, i.e. BUILD_MONAI=1 pip install git+https://github.com/Project-MONAI/MONAI#egg=monai do not work out of the box for Windows users.

To Reproduce
Run BUILD_MONAI=1 pip install git+https://github.com/Project-MONAI/MONAI#egg=monai in Windows using CMD or Powershell

Expected behavior
It should install/

Environment
Any windows 11 machine

Activity

  1. ytl0623 commented on Mar 28, 2024

    @ytl0623
    Contributor

    Hi @masadcv

    I tried following commands in the Windows 11 machine with the Anaconda environment.

    set BUILD_MONAI=1
    git clone https://github.com/Project-MONAI/MONAI
    cd MONAI
    python setup.py install
    

    There are NO errors happened, so maybe you can try to use this method.

    ...
    Using c:\users\user\appdata\roaming\python\python39\site-packages
    Finished processing dependencies for monai==1.3.1rc1+2.g2d463a7d
    

    Or maybe you can try to install in a Linux system(Ubuntu 18.04)

    set BUILD_MONAI=1
    pip install --no-build-isolation git+https://github.com/Project-MONAI/MONAI#egg=monai
    

    It works for me.

    ...
    Successfully built monai
    Installing collected packages: mpmath, typing-extensions, sympy, nvidia-nvtx-cu12, nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, numpy, networkx, MarkupSafe, fsspec, filelock, triton, nvidia-cusparse-cu12, nvidia-cudnn-cu12, jinja2, nvidia-cusolver-cu12, torch, monai
    Successfully installed MarkupSafe-2.1.5 filelock-3.13.3 fsspec-2024.3.1 jinja2-3.1.3 monai-1.3.1rc1+2.g2d463a7d mpmath-1.3.0 networkx-3.2.1 numpy-1.26.4 nvidia-cublas-cu12-12.1.3.1 nvidia-cuda-cupti-cu12-12.1.105 nvidia-cuda-nvrtc-cu12-12.1.105 nvidia-cuda-runtime-cu12-12.1.105 nvidia-cudnn-cu12-8.9.2.26 nvidia-cufft-cu12-11.0.2.54 nvidia-curand-cu12-10.3.2.106 nvidia-cusolver-cu12-11.4.5.107 nvidia-cusparse-cu12-12.1.0.106 nvidia-nccl-cu12-2.19.3 nvidia-nvjitlink-cu12-12.4.99 nvidia-nvtx-cu12-12.1.105 sympy-1.12 torch-2.2.2 triton-2.2.0 typing-extensions-4.10.0
    
  2. added a commit that references this issue on Jun 29, 2026
    d6220f7
  3. added a commit that references this issue on Jun 30, 2026
    d6713fd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions