I apologize in advance if this forum is the wrong place to raise this issue, which is more related to SimpleElastix than simpleITK. I did not get any answer from the SimpleElastix community, so I’m trying here.
This issue seems to be pretty common, but so far I couldn’t find a solution that worked for me…
I’ve tried to install SimpleElastix on Linux as specified in here: Getting Started — SimpleElastix 0.1 documentation
I activated my python environment then installed SimpleElastix using
python Packaging/setup.py install
After installation, when calling
sitk.ElastixImageFilter(), the following error appeared: Module ‘SimpleITK’ has no attribute ‘ElastixImageFilter’.
I read in other issues that this might be due to several versions of SimpleITK coexisting on my computer, so I uninstalled SimpleITK and reinstalled SimpleElastix to ensure there was only one version of SimpleITK on my machine.
Now, when I try to import SimpleITK, python doesn’t seem to find it:
No module named '_SimpleITK'
I use python 3.6.
Thanks in advance!