ImportError: No module named cv2

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

系统版本Ubuntu 14.04.1

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

>>> 

猜你喜欢

转载自blog.csdn.net/xiangliangyu2008/article/details/82585683
今日推荐