Setting up SimpleITK with anaconda

Hello there,
I have been frustrated with getting SimpleITK working with jupyter past week.

I have been following the instructions on this article : SimpleITK Tutorial . I have installed everything that is necessary. However when in Jupyter, I am getting the following error: See Image

What I have tried so far:
Completely re-install everything from the beginning.
I have correctly added PATH to System Variables:"C:\Users\Devo\anaconda3\Lib\site-packages

condalist command includes the following in it : simpleitk 2.2.1 py39h82bb817_0 simpleitk

conda info command includes the information below:

active environment : sitkpy
active env location : C:\Users\Devo\anaconda3\envs\sitkpy
shell level : 2
user config file : C:\Users\Devo.condarc
populated config files : C:\Users\Devo.condarc
conda version : 23.7.3
conda-build version : 3.26.0
python version : 3.11.4.final.0
virtual packages : __archspec=1=x86_64
__cuda=12.2=0
__win=0=0
base environment : C:\Users\Devo\anaconda3 (writable)
conda av data dir : C:\Users\Devo\anaconda3\etc\conda
conda av metadata url : None
channel URLs : main/win-64
main/noarch
r/win-64
r/noarch
msys2/win-64
msys2/noarch
package cache : C:\Users\Devo\anaconda3\pkgs
C:\Users\Devo.conda\pkgs
C:\Users\Devo\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\Devo\anaconda3\envs
C:\Users\Devo.conda\envs
C:\Users\Devo\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/23.7.3 requests/2.31.0 CPython/3.11.4 Windows/10 Windows/10.0.19045
administrator : False
netrc file : None
offline mode : False

Can I get some help, please?

Hello @devo99,

There is a problem with the SimpleITK windows distribution on the anaconda channel, will be addressed in the next release (expected in the next couple of weeks). For now, install it using pip:

conda activate sitkpy
conda remove SimpleITK
pip install SimpleITK
1 Like