Slicer Module import error: dll load failed

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

“ModuleNotFoundError: No Module named ‘cv2’”

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

Any further clue? Many thanks!

Slicer has its own python environment. Use slicer.util.pip_install to install what you need. See here.

1 Like