# How To Install TotalSegmentor module

**URL:** <https://discourse.slicer.org/t/how-to-install-totalsegmentor-module/26901>\
**Category:** Support\
**Tags:** segmentation, extensions-manager\
**Created:** [December 24, 2022, 3:18am UTC](https://discourse.slicer.org/t/how-to-install-totalsegmentor-module/26901 "2022-12-24T03:18:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [December 24, 2022, 3:18am UTC](https://discourse.slicer.org/t/how-to-install-totalsegmentor-module/26901/1 "2022-12-24T03:18:06Z")

</div>

Dear all,

I was plugin the TotalSegmentor extension. But got error.

**Failed to compute results.**

**Command ‘[‘C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/bin/…/bin\PythonSlicer.EXE’, ‘-m’, ‘light\_the\_torch’, ‘install’, ‘torch’]’ returned non-zero exit status 1.**

**Traceback (most recent call last):**  
\*\* File “C:\Users\Akmal\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py”, line 2961, in tryWithErrorDisplay\*\*  
\*\* yield\*\*  
\*\* File “C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 248, in onApplyButton\*\*  
\*\* self.logic.setupPythonRequirements()\*\*  
\*\* File “C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 494, in setupPythonRequirements\*\*  
\*\* torch = torchLogic.installTorch(askConfirmation=True)\*\*  
\*\* File “C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/PyTorch/lib/Slicer-5.2/qt-scripted-modules/PyTorchUtils.py”, line 180, in installTorch\*\*  
\*\* slicer.util.\_executePythonModule(‘light\_the\_torch’, args)\*\*  
\*\* File “C:\Users\Akmal\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py”, line 3533, in \_executePythonModule\*\*  
\*\* logProcessOutput(proc)\*\*  
\*\* File “C:\Users\Akmal\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py”, line 3502, in logProcessOutput\*\*  
\*\* raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)\*\*  
**subprocess.CalledProcessError: Command ‘[‘C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/bin/…/bin\PythonSlicer.EXE’, ‘-m’, ‘light\_the\_torch’, ‘install’, ‘torch’]’ returned non-zero exit status 1.**

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 24, 2022, 4:58am UTC](https://discourse.slicer.org/t/how-to-install-totalsegmentor-module/26901/2 "2022-12-24T04:58:57Z")

</div>

Thanks for reporting, it is due to a regression that I introduced a few days ago when I improved GPU detection. Update PyTorch extension tomorrow in the extensions manager and it should work well. Let me know if you run into any further issues.

---

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [December 29, 2022, 2:07am UTC](https://discourse.slicer.org/t/how-to-install-totalsegmentor-module/26901/3 "2022-12-29T02:07:43Z")

</div>

SOlve. Thank you sir.
