SimpleITK python installation in windows container

Hi all,
I am trying to use simpleITK inside the docker windows container. The container is built without any error. But when I run the container, I am getting the following error.

Traceback (most recent call last):

  • File “c:\”, line 1, in *
  • import SimpleITK as sitk*
  • File “C:\Python\lib\site-packages\”, line 18, in *
  • from SimpleITK.SimpleITK import **
  • File “C:\Python\lib\site-packages\SimpleITK\”, line 13, in *
  • from . import _SimpleITK*
    ImportError: DLL load failed while importing _SimpleITK: The specified module could not be found.

Here is my Dockerfile

FROM python:3.9-windowsservercore
COPY c:/
COPY requirements.txt c:/requirements.txt
RUN python -m pip install -r c:/requirements.txt
CMD [ “python” ,“c:/”]

Here is the

import SimpleITK as sitk
print(“Hello World !!!”)
img = sitk.ReadImage(’./input/sample.mha’)