Error when importing cv2 on Python 3.8

asked Oct 25 '0

Yzich gravatar image

I was building OpenCV 4.5.0 using CMake 3.18.2 with CUDA. Everything went successfully when i try to install it on MSCV 2019. But when i try to import the cv2 on python it return

image description

What should i do?

Preview: (hide)

Comments

1

did you build static opencv libs ? (cmake -DBUILD_SHARED_LIBS=OFF)

if not so, you have to append the path to the opencv dlls to the PATH environment variable

and please, do not post images of errors, but TEXT

berak gravatar imageberak (Oct 25 '0)edit

Can you try using python_d.exe and try import cv2?

LBerger gravatar imageLBerger (Oct 25 '0)edit