ImportError: libGL.so.1: cannot open shared object file: No such file or directory

SSW·2023년 3월 8일
0

Trouble Shooting

목록 보기
7/10

yolov7 inference code를 돌리는 과정에서 error 발생

Error Message

Traceback (most recent call last):
  File "detect.py", line 5, in <module>
    import cv2
  File "/root/anaconda3/envs/yolov7/lib/python3.8/site-packages/cv2/__init__.py", line 181, in <module>
    bootstrap()
  File "/root/anaconda3/envs/yolov7/lib/python3.8/site-packages/cv2/__init__.py", line 153, in bootstrap
    native_module = importlib.import_module("cv2")
  File "/root/anaconda3/envs/yolov7/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

Solution

$ sudo apt-get update
$ sudo apt-get install libgl1-mesa-glx
profile
ssw

0개의 댓글