sudo pip install opencv-python安装opencv出错
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/cv2/__init__.py", line 9, in <module>
from .cv2 import *
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
解决方法
sudo pip install opencv-python==3.2.0.8
成功!
之前也进行了sudo yum update && yum install -y libsm6 libxext6操作,但不正确,
也不知道是不是两个命令都一起作用了,还是只是第一个。
你可以试试,我这里可以了!