ImportError: libSM.so.6: cannot open shared object file: No such file or directory解决

Python3环境下在docker虚拟机下安装了opencv以后,在使用的时候出现以下报错,import cv2 提示 

ImportError: libSM.so.6: cannot open shared object file: No such file or directory

解决步骤

sudo apt-get update

sudo apt-get install -y python-qt4

import cv2 提示 

 ImportError: No module named cv2

sudo apt-get  install opencv-python

转自https://blog.csdn.net/roxxo/article/details/87166706

posted @ 2019-09-10 15:17  AnswerThe  阅读(820)  评论(0编辑  收藏  举报