# SimpleITK python installation in windows container

**URL:** https://discourse.itk.org/t/simpleitk-python-installation-in-windows-container/5129
**Category:** Beginner Questions
**Tags:** crash-in-windows, python, docker, simpleitk
**Created:** [June 23, 2022, 6:50pm UTC](https://discourse.itk.org/t/simpleitk-python-installation-in-windows-container/5129 "2022-06-23T18:50:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sowmya\_Rajesh](https://discourse.itk.org/user_avatar/discourse.itk.org/sowmya_rajesh/32/2770_2.png) [@Sowmya\_Rajesh](https://discourse.itk.org/u/Sowmya_Rajesh)
#### Post date: [June 23, 2022, 6:50pm UTC](https://discourse.itk.org/t/simpleitk-python-installation-in-windows-container/5129/1 "2022-06-23T18:50:53Z")

</div>

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:\helloworld.py”, line 1, in \*
- import SimpleITK as sitk\*
- File “C:\Python\lib\site-packages\SimpleITK\__init_\_.py”, line 18, in \*
- from SimpleITK.SimpleITK import \*\*
- File “C:\Python\lib\site-packages\SimpleITK\SimpleITK.py”, 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 helloworld.py c:/helloworld.py**  
**COPY requirements.txt c:/requirements.txt**  
**RUN python -m pip install -r c:/requirements.txt**  
**CMD [“python” ,“c:/helloworld.py”]**

Here is the helloworld.py

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