# Ubuntu
$ sudo aptitude install python-opencv

# Mac OS X
$ sudo port install opencv +python27