Can't import cv2

I was try to install Opencv with CUDA by this script
When it say install completely and I try to import cv2 but always say

ImportError: No module named cv2

How can I import it ?


Please remember to add the building folder into the environment variable.

The python package is located at {folder}/opencv-4.0.0/release/python_loader and try to update the pythonpath like this:

export PYTHONPATH=$PYTHONPATH:/path/to/your/folder/opencv-4.0.0/release/python_loader/


1 Like