【python libsm6错误】ImportError: libSM.so.6: cannot open shared object file: No such file or directory

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

raceback (most recent call last):
  File "test.py", line 3, in <module>
    import easyocr
  File "/root/anaconda3/envs/model/lib/python3.7/site-packages/easyocr/__init__.py", line 1, in <module>
    from .easyocr import Reader
  File "/root/anaconda3/envs/model/lib/python3.7/site-packages/easyocr/easyocr.py", line 3, in <module>
    from .detection import get_detector, get_textbox
  File "/root/anaconda3/envs/model/lib/python3.7/site-packages/easyocr/detection.py", line 7, in <module>
    import cv2
  File "/root/anaconda3/envs/model/lib/python3.7/site-packages/cv2/__init__.py", line 3, in <module>
    from .cv2 import *
ImportError: libSM.so.6: cannot open shared object file: No such file or directory

解决办法:

yum whatprovides libSM.so.6
yum install libSM-1.2.2-2.el7.x86_64 --setopt=protected_multilib=false

错误2:ImportError: libXext.so.6: cannot open shared object file: No such file or directory

解决办法:

sudo yum install libXext-1.3.3-3.el7.x86_64 --setopt=protected_multilib=false

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页