Linux

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

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

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-dev

评论

10:24:00
8月27日, 2026, 周三
system_stats.sh
处理器 CPU82%
运行内存 RAM12.4G / 16G
网络吞吐 Network5.2 Mbps · 4g

精选图库

JacyLunatic

JacyLunatic

只争朝夕

91 篇创作

实时天气

24°
本地
28° / 24°
97% 12 km/h 体感 29°
逐小时
多日预报

创作活跃度

萌ICP备20241011号
本站已加入BLOGS·CN