This happened out of the blue, I was able to import cv2 but now I get 'AttributeError: partially initialized module 'cv2' has no attribute 'gapi\_wip\_gst\_GStreamerPipeline' (most likely due to a circular import)' error when I import it. The things I tried:

1-uninstalling and installing opencv.
2-In cmd, I typed "pip list" and opencv-python package is listed. I ran "python" command and tried importing cv2 but I get the same error. Please help.