Ask Your Question
0

Problem using opencv with python in mac os x 10.6.8

asked 2013-02-22 10:02:49 -0600

I first used the BUILD_PYTHON=ON in cmake method. But it didn't work.

Again I used MacPort.

sudo port install opencv +python27

This gave this result.

---> Computing dependencies for opencv ---> Deactivating opencv @2.4.3_4+python26 ---> Cleaning opencv ---> Activating opencv @2.4.3_4+python27 ---> Cleaning opencv ---> Scanning binaries for linking errors: 100.0% ---> No broken files found.

After this I opened python and entered-

>>>import cv

But it gave the below error

Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named cv

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-09 15:46:14 -0600

Vipul gravatar image

If you made virtual environment before installing, you will need to create virtual environment each time before runing python.

I used the same method I need to run 'mkvirtualenv cv' each time before running python. 11280

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-22 10:02:49 -0600

Seen: 412 times

Last updated: Feb 22 '13