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

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

Importing cv2 in python is showing error:

This shows some library file is missing.

Solution:

Initially, it is better to install the open-cv latest version (if it is not already installed):

and opencv-contrib-python package as well:

 

if these packages are already installed then update using:

after that install the missing libraries using the following

 

enjoy!

 

Related Links:

  1. List of operating systems installed on your Computer
  2. PyFLANN for python3: ModuleNotFoundError: No module named ‘index’
  3. Python3 Packages to install before starting to code on deep learning using Tensorflow
  4. Python .pickle file to Matlab .mat file converter

Leave a Reply