rafer
rafer

Reputation: 51

Python ImportError: No module named cv

Im just new to Python and trying to run a scripts online code here

However one error occurred:

File "C:\Python27\track.py", line 1,in <module>
import cv
ImportError: No module named cv

Can someone enlighten me?

Upvotes: 2

Views: 15324

Answers (2)

Zimm3r
Zimm3r

Reputation: 3425

Install OpenCV

https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_tutorials.html

It needs this package to function

Upvotes: 5

milkersarac
milkersarac

Reputation: 3479

Look at here http://opencv.willowgarage.com/wiki/InstallGuide%20%3A%20Debian, 'Making Python work';

third option worked for me but there is a bug there, the correct line to add bashrc is

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages

this can vary according to your python installation though.

Upvotes: 0

Related Questions