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]
In my case it was a problem with cmake:
cmake
sudo apt install software-properties-common sudo add-apt-repository ppa:george-edison55/cmake-3.x sudo apt update
If cmake is not yet installed:
sudo apt install cmake
If cmake is already installed:
sudo apt upgrade
For more information, see this link.