Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

OpenCV 2.1 was first installed when I had the original python 2.6 and this works fine. However after getting the Python 3.1, it has no module called 'cv' after trying to import OpenCV. How to add these modules?

share|improve this question

2 Answers 2

According to this answer on StackOverflow, OpenCV doesn't support Python 3 and no one is working on Python 3 support either.

share|improve this answer

Simply use import statement. First go to

$ cd /usr/local/lib/python2.6/site-packages/opencv

Then start python:

$ python
>>>  import cv.py

For any other help, refer http://blog.taesoo.org/?p=210 and http://opencv.willowgarage.com/documentation/python/introduction.html.

share|improve this answer
First of all, you don't need to be in any particular folder to import the cv package. Second of all, the OP was asking for Python 3 instructions, and you are talking about Python 2.6. There is a world of difference there. –  GaRyu Jul 19 '12 at 10:54
-1: this is just wrong Python coding and doesn't answer the question. –  Timo Jul 19 '12 at 11:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.