2

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'.

2
  • You need to install pip install opencv-contrib-python Commented Nov 26, 2020 at 9:54
  • 2
    Did you name your script cv2.py? Commented Nov 26, 2020 at 9:54

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

this didnt work for me as pip couldn't find a package called opencv-python3

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.