# TotalSegmentator error at first run: "Command ‘pip’, ‘install’, ‘git+https://github.com/wasserth/TotalSegmentator.git’, ‘–no-deps’\]’ returned non-zero exit status"

**URL:** <https://discourse.slicer.org/t/totalsegmentator-error-at-first-run-command-pip-install-git-https-github-com-wasserth-totalsegmentator-git-no-deps-returned-non-zero-exit-status/26715>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [December 13, 2022, 3:44pm UTC](https://discourse.slicer.org/t/totalsegmentator-error-at-first-run-command-pip-install-git-https-github-com-wasserth-totalsegmentator-git-no-deps-returned-non-zero-exit-status/26715 "2022-12-13T15:44:54Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [May 1, 2023, 1:03pm UTC](https://discourse.slicer.org/t/totalsegmentator-error-at-first-run-command-pip-install-git-https-github-com-wasserth-totalsegmentator-git-no-deps-returned-non-zero-exit-status/26715/38 "2023-05-01T13:03:27Z")

</div>

Please start all over again.

It would be great if you could read the [troubleshooting section](https://github.com/lassoan/SlicerTotalSegmentator#troubleshooting) of the TotalSegmentator extension in the beginning.

- Uninstall 3D Slicer and delete the installation directory.
- Install 3D Slicer stable in a new directory.
- Install the Pytorch extension.
- In the Pytorch extension, select CPU support just for a test.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/d/2db06282a1196c2ca884a26f647b7cf540ee7bef.png)

- Install Pytorch.
- Restart 3D Slicer.
- Install the Totalsegmentator extension.
- Load the CT Chest dataset
- Run TotalSegmentator (will take longer because of using CPU).

If not working, please post the results of the log and/or complete content of progress window here.  
We will handle GPU support later, probably by someone who has an M2 Macbook at hand. Not sure GPU support works in this case.

---

_[View the full topic](https://discourse.slicer.org/t/totalsegmentator-error-at-first-run-command-pip-install-git-https-github-com-wasserth-totalsegmentator-git-no-deps-returned-non-zero-exit-status/26715)._
