ImportError: No module named cv2
# python qu.py
Traceback (most recent call last):
File "qu.py", line 2, in <module>
import cv2,os,shutil,datetime,re,time
ImportError: No module named cv2
python版本
# python -V
Python 2.7.6
解决办法:
apt-get -y install python-opencv
# python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>>