Interrogez-nous, nous vous répondrons !

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

OS : Ubuntu 18.04.

Erreur :

ImportError                               Traceback (most recent call last)
 in 
     10 from sklearn.model_selection import train_test_split
     11 
---> 12 import cv2
     13 
     14 import matplotlib.pyplot as plt
/usr/local/lib/python3.6/dist-packages/cv2/__init__.py in 
      1 import importlib
      2 
----> 3 from .cv2 import *
      4 from .data import *
      5 
ImportError: libSM.so.6: cannot open shared object file: No such file or directory

Comment réparer

sudo apt-get update
sudo apt-get install -y libsm6 libxext6 libxrender-dev
pip3 install opencv-python


Mis à jour: 18.03.2025

Publié: 10.01.2020


Des questions ? Écrivez-nous!

By clicking «I Accept» you confirm that you have read and accepted the website Terms and Conditions, Privacy Policy, and Moneyback Policy.