# 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:** 1\
**Showing post:** 5

<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…

---

_[View the full topic](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269)._
