Can you provide us info with which package was changing the SimpleITK version? Was it choosing the a newer or older SimpleITK version?
This issue with updating SimpleITK is currently tracked at:
opened 03:18AM - 30 Nov 22 UTC
Type: Bug
## Summary
When installing a package that requires a specific SimpleITK versi… on (e.g., TotalSegmentator requires SimpleITK==2.0.2) then installation of that package may replace Slicer's SimpleITK.
The new SimpleITK package mostly works, but the ITK IO plugins that Slicer provides (e.g., for in-memory file transfer between Slicer and ITK) don't work anymore.
## Steps to reproduce
Run `pip_install('TotalSegmentator')`.
Slicer's SimpleITK is uninstalled and SimpleITK-2.0.2 is installed.
## Expected behavior
Slicer's SimpleITK should not be uninstalled.
## Environment
- Slicer version: Slicer-5.2.1
- Operating system: Windows 11
There is already discussion to switch Slicer to installing SimpleITK from SimpleITK’s published whl files rather than building from source. This was discussed at:
Now that Slicer PR-6564 adding support for building ITK with a custom namespace has been integrated, installing SimpleITK from wheels should be possible.
Pros:
Reduced build time by a factor x2 (and probably more on windows)
Version of SimpleITK bundled in Slicer may be update-able using pip, this would allow to install a newer SimpleITK in a released Slicer distribution.
Reduced build-system complexity by removing external projects Swig, PCRE and SimpleITK and introducing python-SimpleITK
C…