shantnu / FaceDetect

825 stars 1.25k forks source link

module 'cv2' has no attribute '__version__' #33

Closed GeneratorX16 closed 3 years ago

GeneratorX16 commented 3 years ago

OpenCV version: 4.5.3 Python Version:3.7 Windows 10

I installed opencv using cmake and visual studio and when I run python on cmd and type out the code:

import cv2 print(cv2.version)

I get this error:

Traceback (most recent call last): File , line 1, in AttributeError: module 'cv2' has no attribute 'version'

Edit: There are double underscores before and after version but I cant seem to see them in the post.