# TotalSegmentator fails to install PyTorch dependencies – installTorch() got unexpected keyword argument 'torchVisionVersionRequirement'

**URL:** <https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911>\
**Category:** Support\
**Tags:** segmentation, installation, pytorch, totalsegmentator, pytorch-util\
**Created:** [May 4, 2026, 12:46pm UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911 "2026-05-04T12:46:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madison\_Golledge](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/madison_golledge/32/66215_2.png) [@Madison\_Golledge](https://discourse.slicer.org/u/Madison_Golledge)\
**Post date:** [May 4, 2026, 12:46pm UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/1 "2026-05-04T12:46:40Z")

</div>

I’m trying to use the **T** otalSegmentator extension in 3D Slicer for segmenting an MRI dataset, but I’m running into a consistent error during the dependency installation step.

When clicking “Apply” in the TotalSegmentator module, I get:

PyTorch Python package is required. Installing… (it may take several minutes)

Failed to install Python dependencies:  
PyTorchUtilsLogic.installTorch() got an unexpected keyword argument ‘torchVisionVersionRequirement’

### nvironment:

- OS: Windows (also tested on macOS with same error)

- Slicer version: 5.11.0 (Preview)  
(Also tested on 5.10 stable with same issue

- Extensions installed:

Observations: PyTorch appears installed and visible in Extensions Manager. Error occurs during the automatic dependency installation step triggered by TotalSegmentator. Suggests a mismatch between TotalSegmentator and PyTorchUtils API (unexpected argument)

Is this a known compatibility issue between TotalSegmentator and current PyTorchUtils versions? Is there a recommended Slicer version / extension version combination that avoids this? Is there a way to bypass the internal PyTorch installation step and point to an existing PyTorch install?

---

<div class="post-metadata">

**Author:** ![Matteboo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/matteboo/32/66548_2.png) [@Matteboo](https://discourse.slicer.org/u/Matteboo)\
**Post date:** [May 4, 2026, 4:18pm UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/2 "2026-05-04T16:18:30Z")

</div>

Have you tried MONAIAuto3DSeg  
It works for version 5.10

---

<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:** [May 4, 2026, 7:26pm UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/3 "2026-05-04T19:26:38Z")

</div>

Sorry, that’s due to a recent regression that I cause when fixing the macOS installation. I’ve fixed the issue now, please retry tomorrow. You can either use the latest Slicer Stable Release (Slicer-5.10) and update the TotalSegmentator extension; or install the latest Slicer Preview Release (Slicer-5.11) tomorrow.

---

<div class="post-metadata">

**Author:** ![MGL](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MGL](https://discourse.slicer.org/u/MGL)\
**Post date:** [May 4, 2026, 11:31pm UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/4 "2026-05-04T23:31:38Z")

</div>

hallo sir，could I try now？

---

<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:** [May 4, 2026, 11:54pm UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/5 "2026-05-04T23:54:33Z")

</div>

You can make [these changes](https://github.com/lassoan/SlicerTotalSegmentator/commit/e5f0f8e6e3f5d857dd99217787fccc7f47418b6d) locally in `TotalSegmentator.py‎` file on your computer (you can find the location of the file in the error message in the Python console); or wait for the nightly builds to complete at around 10am EST.

---

<div class="post-metadata">

**Author:** ![MGL](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MGL](https://discourse.slicer.org/u/MGL)\
**Post date:** [May 5, 2026, 12:22am UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/6 "2026-05-05T00:22:11Z")

</div>

thanks a lot sir!Really appreciate it!

---

<div class="post-metadata">

**Author:** ![MGL](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MGL](https://discourse.slicer.org/u/MGL)\
**Post date:** [May 5, 2026, 12:37am UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/7 "2026-05-05T00:37:05Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/2/e28373ae14793a76d934ccb045bb00d08404f8af.png)Sorry sir,I cant find any changes when I try to modify your code locally.Did I do something wrong?thank for your reply again!

---

<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:** [May 5, 2026, 12:37am UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/8 "2026-05-05T00:37:56Z")

</div>

Please copy here the complete error message. Don’t forget to reload the module or restart Slicer after you make the changes and save the file.

---

<div class="post-metadata">

**Author:** ![MGL](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MGL](https://discourse.slicer.org/u/MGL)\
**Post date:** [May 5, 2026, 3:03am UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/9 "2026-05-05T03:03:15Z")

</div>

Failed to compute results.

Command ‘[‘D:/software/3D Slicer 5.10.0/bin/../bin\\PythonSlicer.EXE’, ‘D:\\software\\3D Slicer 5.10.0\\lib\\Python\\Scripts\\TotalSegmentator.exe’, ‘-i’, ‘C:/Users/Lenovo/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2026-05-05\_11+01+56.029/total-segmentator-input.nii’, ‘-o’, ‘C:/Users/Lenovo/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2026-05-05\_11+01+56.029/segmentation’, ‘–device’, ‘gpu’, ‘–task’, ‘vertebrae\_body’]’ 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:** [May 5, 2026, 11:40am UTC](https://discourse.slicer.org/t/totalsegmentator-fails-to-install-pytorch-dependencies-installtorch-got-unexpected-keyword-argument-torchvisionversionrequirement/46911/10 "2026-05-05T11:40:08Z")

</div>

Great, the precoous problem was solved. TotalSegmentator is now started.

Do you see more specific error message in the application log? What GPU do you have? Is segmentation successful on the CTChest sample sata set in fastest mode? Is segmentation successful if you force to use CPU?
