# Slicer Module import error: dll load failed

**URL:** https://discourse.slicer.org/t/slicer-module-import-error-dll-load-failed/22417
**Category:** Support
**Created:** [March 9, 2022, 7:39pm UTC](https://discourse.slicer.org/t/slicer-module-import-error-dll-load-failed/22417 "2022-03-09T19:39:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jiachaoliang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jiachaoliang/32/13438_2.png) [@jiachaoliang](https://discourse.slicer.org/u/jiachaoliang)
#### Post date: [March 9, 2022, 7:39pm UTC](https://discourse.slicer.org/t/slicer-module-import-error-dll-load-failed/22417/1 "2022-03-09T19:39:04Z")

</div>

I got an error when to use “import cv2”.

“ModuleNotFoundError: No Module named ‘cv2’”

But I had opencv-python-4.5.5.64 successfully installed right before this error code.

Any further clue? Many thanks!

---

<div class="post-metadata">

### Author: ![ebrahim](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ebrahim/32/13403_2.png) [@ebrahim](https://discourse.slicer.org/u/ebrahim)
#### Post date: [March 10, 2022, 1:59am UTC](https://discourse.slicer.org/t/slicer-module-import-error-dll-load-failed/22417/2 "2022-03-10T01:59:24Z")

</div>

Slicer has its own python environment. Use `slicer.util.pip_install` to install what you need. [See here.](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#install-a-python-package)
