Opencv3 and Python 2.7 on Virtual Environment - AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer'
问题 I have a python function with opencv 3. it works without virtual environment.Also I installed opencv on venv from:pyimagesearch. i am trying to run that python function on venv, then it gives an error : AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer' without venv in terminal: gkhan@Gkan ~/Masaüstü/face_recognizer $ python face_recognizer.py Yol :./sinif/114.jpg. 114 Yuz Tanindi 12 with venv in terminal: gkhan@Gkan ~/Masaüstü/face_recognizer $ workon cv (cv)gkhan