Boostcamp AI tech 3기

ImportError: libGL.so.1: cannot open shared object file: No such file or directory 에러 해결

mcdn 2022. 4. 14. 13:21
반응형

전체 에러 내용

Traceback (most recent call last):
  File "train.py", line 14, in <module>
    from east_dataset import EASTDataset
  File "/opt/ml/code/east_dataset.py", line 5, in <module>
    import cv2
  File "/opt/conda/envs/bc/lib/python3.8/site-packages/cv2/__init__.py", line 180, in <module>
    bootstrap()
  File "/opt/conda/envs/bc/lib/python3.8/site-packages/cv2/__init__.py", line 152, in bootstrap
    native_module = importlib.import_module("cv2")
  File "/opt/conda/envs/bc/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

 

boostcamp ai tech 

import cv2 할 때마다 생기는 에러 

 

pip install opencv-python-headless==4.5.1.48

pip install opencv-python-headless==4.5.1.48

 

 

해결완료

반응형