Error when importing cv2 on Python 3.8

asked 2020-10-24 23:14:31 -0600

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?

edit retag flag offensive close merge delete

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 ( 2020-10-25 02:40:35 -0600 )edit

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

LBerger gravatar imageLBerger ( 2020-10-25 09:29:57 -0600 )edit