I have install the opencv to my ubuntu 14.04LTS,But I have got two version .After I have done the install.I try the below command:
pkg-config --modversion opencv
I got the version: 3.0.0 And when i work it on python shell
>>import cv2
>>cv2.__version__
'2.4.8'
When I follow this http://docs.opencv.org/trunk/d5/d26/tutorial_py_knn_understanding.html#gsc.tab=0 I got some error said 'cv2 have not module 'ml''so,I find it's because i guess my opencv version did't match this tutorial! Can anyone help, why my opencv did't match the python mudule?