# How to solve Pytorch version error in TotalSegmentator using CPU?

**URL:** <https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269>\
**Category:** Support\
**Tags:** segmentation, python, segmentations, segment-editor\
**Created:** [May 20, 2024, 3:17am UTC](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269 "2024-05-20T03:17:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saulo](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Saulo](https://discourse.slicer.org/u/Saulo)\
**Post date:** [May 20, 2024, 3:17am UTC](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269/1 "2024-05-20T03:17:39Z")

</div>

I installed Slicer 5.6.2 on my MACBOOK 13-inch, 2019.  
I installed TOTAL SEGMENTATION and MONAIauto3DSeg to try to do reconstructions, but when starting with totalsegmentation the following message appears “Application is required to complete installation of required Python packages.  
Press OK to restart.” and when I try to use MONAIAuto3DSeg the following message appears "Failed to install required dependencies.  
PyTorch version 1.8.1 is not compatible with this module. Minimum required version is 1.12. You can use ‘PyTorch Util’ module to install PyTorch with version requirement set to: \>=1.12

I tried installing a more current PyTorch, but even after restarting and reinstalling all applications, it always loads version 1.8.1 and the error remains. Can anyone help?

---

<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 20, 2024, 3:21am UTC](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269/2 "2024-05-20T03:21:27Z")

</div>

What is your TotalSegmentator extension version (it is displayed in the Extensions Manager).

Have you tried to follow the instruction you got and use `PyTorch Utils` module with version requirement set to `>=1.12` ?

---

<div class="post-metadata">

**Author:** ![Saulo](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Saulo](https://discourse.slicer.org/u/Saulo)\
**Post date:** [May 21, 2024, 12:52am UTC](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269/3 "2024-05-21T00:52:08Z")

</div>

Version 9f434a5 (2024-04-25)

Unfortunately I don’t know how to evaluate the requirements with version requirement set to \>=1.12 ?

---

<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 21, 2024, 3:15am UTC](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269/4 "2024-05-21T03:15:21Z")

</div>

Please go to “Pytorch utils” module, type `>=1.12` into the textbox, and click Install.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [May 21, 2024, 3:24am UTC](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269/5 "2024-05-21T03:24:19Z")

</div>

This seems to be a recurring problem at least on macOS

> [@How to solve Pytorch version error in TotalSegmentator using CPU](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/34995/3):
>
> Himm this is interesting. I just tried on my Mac, and while it started downloading v 2.2.1, it ended up installing 1.8. Not sure why. @lassoan Install PyTorch using light-the-torch with arguments: ['install', 'torch', 'torchvision', '--pytorch-computation-backend=cpu'] Collecting torch Downloading https://download.pytorch.org/whl/cpu/torch-2.2.1-cp39-none-macosx\_10\_9\_x86\_64.whl (151.0 MB) Collecting torchvision Using cached https://download.pytorch.org/whl/torchvision-0.9.1-cp39-cp39-macos…

---

<div class="post-metadata">

**Author:** ![So-lets-code](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/so-lets-code/32/79413_2.png) [@So-lets-code](https://discourse.slicer.org/u/So-lets-code)\
**Post date:** [February 12, 2025, 1:26pm UTC](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269/6 "2025-02-12T13:26:36Z")

</div>

After you uninstall PyTorch, you need to restart Slicer, and then install the v2.2.1 in module ‘PyTorch utils’. This solved the issue for me (also using macOS).
