Karthik K
Karthik K

Reputation: 37

AttributeError: module 'cv2' has no attribute '__version__'

I installed OpenCV and I am not able to find the version of it. I can import cv and it's showing now errors. I am using an ubuntu os.

import cv2
cv2.__version__

AttributeError: module 'cv2' has no attribute 'version'.

Upvotes: 1

Views: 8834

Answers (1)

Karthik K
Karthik K

Reputation: 37

I found the answer guys. I had used the command "pip install opencv-python3" instead of "pip install opencv-python"

Upvotes: 1

Related Questions