Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
This is out of date. – hayd Aug 13 '15 at 5:50

Simply use import statement. First go to

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

Then start python:

$ python
>>>  import

For any other help, refer and

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.