This article was last updated on 2024-01-08, 751 days ago. If content or image links are invalid, please leave feedback.
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
不知道为啥每次开新服务器都会报这个错,记录一下
import cv2
File "/opt/conda/lib/python3.7/site-packages/cv2/__init__.py", line 3, in <module>
from .cv2 import *
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory解决办法
apt-get update
apt-get install libglib2.0-devImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
https://556799.xyz/archives/importerror-libgthread-2.0.so.0-cannot-open-shared-object-file-no-such-file-or-directory
Comments