# Slicer kernel died when importing cv2

**URL:** <https://discourse.slicer.org/t/slicer-kernel-died-when-importing-cv2/23745>\
**Category:** Support\
**Tags:** python\
**Created:** [June 7, 2022, 6:47am UTC](https://discourse.slicer.org/t/slicer-kernel-died-when-importing-cv2/23745 "2022-06-07T06:47:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user4](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/user4/32/13172_2.png) [@user4](https://discourse.slicer.org/u/user4)\
**Post date:** [June 7, 2022, 6:47am UTC](https://discourse.slicer.org/t/slicer-kernel-died-when-importing-cv2/23745/1 "2022-06-07T06:47:28Z")

</div>

Hi,all.I want to use opencv so I installed it.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/1/01031b9324010ce9ed0a5f29d3f5663d55994106.png)  
However,when I import cv2,it takes a long time and failed in the end, as follows:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/d/bdd18e7d2a2e88bb5b46cc4d90a3cdfdddf4375a.png)  
I tried a lot of times ,it is still the same result…It only fails when I select Slicer4.11 as a kernel but it is okay when I select python3.But I have to use Slicer as a kernel for some reason.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/f/df9179e35a27e0d65a854c7476570faeae96370b.png)

Is there some potential way to solve this problem?  
Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [June 7, 2022, 8:58am UTC](https://discourse.slicer.org/t/slicer-kernel-died-when-importing-cv2/23745/2 "2022-06-07T08:58:50Z")

</div>

You need to use the python interactor of Slicer
