# Issues with Loading MUST-Segmenter Module in 3DSlicer

**URL:** <https://discourse.slicer.org/t/issues-with-loading-must-segmenter-module-in-3dslicer/32975>\
**Category:** Support\
**Created:** [November 23, 2023, 10:10am UTC](https://discourse.slicer.org/t/issues-with-loading-must-segmenter-module-in-3dslicer/32975 "2023-11-23T10:10:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyufu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyufu/32/1779_2.png) [@cyufu](https://discourse.slicer.org/u/cyufu)\
**Post date:** [November 23, 2023, 10:10am UTC](https://discourse.slicer.org/t/issues-with-loading-must-segmenter-module-in-3dslicer/32975/1 "2023-11-23T10:10:43Z")

</div>

windows 11，Version: 5.4  
Hello，  
“The 3DSlicer software displays the message ‘MUST-segmenter requires the ‘PyTorch’ Python package. Click OK to install it now.’ when loading the MUST-Segmenter module.”

```auto
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

[notice] A new release of pip is available: 23.1.2 -> 23.3.1
[notice] To update, run: python-real.exe -m pip install --upgrade pip
Traceback (most recent call last):
  File "C:/ProgramData/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/PET-MUST-Segmenter/lib/Slicer-5.4/qt-scripted-modules/MUSTsegmenter.py", line 314, in checkRequirements
    from torch.nn import Conv3d
ModuleNotFoundError: No module named 'torch'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/ProgramData/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/PET-MUST-Segmenter/lib/Slicer-5.4/qt-scripted-modules/MUSTsegmenter.py", line 56, in setup
    self.segmentationLogic = MUSTsegmenterLogic()
  File "C:/ProgramData/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/PET-MUST-Segmenter/lib/Slicer-5.4/qt-scripted-modules/MUSTsegmenter.py", line 292, in __init__
    self.checkRequirements()
  File "C:/ProgramData/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/PET-MUST-Segmenter/lib/Slicer-5.4/qt-scripted-modules/MUSTsegmenter.py", line 321, in checkRequirements
    slicer.util.pip_install('torch')
  File "C:\ProgramData\slicer.org\Slicer 5.4.0\bin\Python\slicer\util.py", line 3759, in pip_install
    _executePythonModule('pip', args)
  File "C:\ProgramData\slicer.org\Slicer 5.4.0\bin\Python\slicer\util.py", line 3721, in _executePythonModule
    logProcessOutput(proc)
  File "C:\ProgramData\slicer.org\Slicer 5.4.0\bin\Python\slicer\util.py", line 3690, in logProcessOutput
    raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['C:/ProgramData/slicer.org/Slicer 5.4.0/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'torch']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "C:/ProgramData/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/PET-MUST-Segmenter/lib/Slicer-5.4/qt-scripted-modules/MUSTsegmenter.py", line 81, in enter
    self.initializeParameterNode()
  File "C:/ProgramData/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/PET-MUST-Segmenter/lib/Slicer-5.4/qt-scripted-modules/MUSTsegmenter.py", line 99, in initializeParameterNode
    self.setParameterNode(self.segmentationLogic.getParameterNode())
AttributeError: 'NoneType' object has no attribute 'getParameterNode'

```

After clicking OK, as shown in the following image, there is a segmentation error and the cursor turns into a spinning circle continuously

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/7/d7d83a34803a6b6aa6aedc79d961a8328649bd90.jpeg)

Any help would be greatly appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![cyufu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyufu/32/1779_2.png) [@cyufu](https://discourse.slicer.org/u/cyufu)\
**Post date:** [November 23, 2023, 11:10am UTC](https://discourse.slicer.org/t/issues-with-loading-must-segmenter-module-in-3dslicer/32975/2 "2023-11-23T11:10:28Z")

</div>

pip\_install(‘torch -i [https://pypi.tuna.tsinghua.edu.cn/simple](https://pypi.tuna.tsinghua.edu.cn/simple)’)
