Python3环境下,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 pip3 install opencv-python
以及
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
apt-get update
apt-get install -y libglib2.0-dev