Today I installed opencv 2.4.4 to Ubuntu 12.10
But import cv2 not works.
root@-:~# python Python 2.7.3 (default, Sep 26 2012, 21:53:58) [GCC 4.7.2]
None of the above worked for me; am in Ubuntu 16.04 on an ec2 instance & had anaconda installed so I just used
conda install opencv for both my conda2 and 3 installs
conda install opencv