ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

问题描述

    import cv2
  File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/cv2/__init__.py", line 3, in 
    from .cv2 import *
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

问题解决

sudo apt-get install libglib2.0-0
sudo apt-get install libglib2.0-0:i386

参考链接:https://askubuntu.com/questions/1060903/importerror-libgthread-2-0-so-0-cannot-open-shared-object-file-no-such-file-o

你可能感兴趣的:(bug,解决,python,深度学习,opencv)