# Failed to upgrade TotalSegmentator at first run on WIN10

**URL:** <https://discourse.slicer.org/t/failed-to-upgrade-totalsegmentator-at-first-run-on-win10/40495>\
**Category:** Support\
**Tags:** segmentation, python, segmentations, segment-editor\
**Created:** [December 3, 2024, 3:04pm UTC](https://discourse.slicer.org/t/failed-to-upgrade-totalsegmentator-at-first-run-on-win10/40495 "2024-12-03T15:04:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfcwefvwr](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@sfcwefvwr](https://discourse.slicer.org/u/sfcwefvwr)\
**Post date:** [December 3, 2024, 3:04pm UTC](https://discourse.slicer.org/t/failed-to-upgrade-totalsegmentator-at-first-run-on-win10/40495/1 "2024-12-03T15:04:34Z")

</div>

[Python] Failed to upgrade TotalSegmentator  
[Python] Command ‘[‘D:/YYC/software/slicer/Slicer 5.7.0-2024-11-29/bin/…/bin\PythonSlicer.EXE’, ‘-m’, ‘pip’, ‘install’, ‘black;extra’, ‘==’, ‘dev’]’ returned non-zero exit status 2.  
Traceback (most recent call last):  
File “D:/YYC/software/slicer/Slicer 5.7.0-2024-11-29/slicer.org/Extensions-33134/TotalSegmentator/lib/Slicer-5.7/qt-scripted-modules/TotalSegmentator.py”, line 319, in onPackageUpgrade  
self.logic.setupPythonRequirements(upgrade=True)  
File “D:/YYC/software/slicer/Slicer 5.7.0-2024-11-29/slicer.org/Extensions-33134/TotalSegmentator/lib/Slicer-5.7/qt-scripted-modules/TotalSegmentator.py”, line 819, in setupPythonRequirements  
self.pipInstallSelective(‘nnunetv2’, nnunetRequirement, packagesToSkip)  
File “D:/YYC/software/slicer/Slicer 5.7.0-2024-11-29/slicer.org/Extensions-33134/TotalSegmentator/lib/Slicer-5.7/qt-scripted-modules/TotalSegmentator.py”, line 706, in pipInstallSelective  
slicer.util.pip\_install(requirement)  
File “D:\YYC\software\slicer\Slicer 5.7.0-2024-11-29\bin\Python\slicer\util.py”, line 3934, in pip\_install  
\_executePythonModule(“pip”, args)  
File “D:\YYC\software\slicer\Slicer 5.7.0-2024-11-29\bin\Python\slicer\util.py”, line 3888, in \_executePythonModule  
logProcessOutput(proc)  
File “D:\YYC\software\slicer\Slicer 5.7.0-2024-11-29\bin\Python\slicer\util.py”, line 3854, in logProcessOutput  
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)  
subprocess.CalledProcessError: Command ‘[‘D:/YYC/software/slicer/Slicer 5.7.0-2024-11-29/bin/…/bin\PythonSlicer.EXE’, ‘-m’, ‘pip’, ‘install’, ‘black;extra’, ‘==’, ‘dev’]’ returned non-zero exit status 2.
