Skip to content

Instantly share code, notes, and snippets.

@patharanordev
Created March 28, 2021 10:54
Show Gist options
  • Select an option

  • Save patharanordev/13ab97889625c8100fb3dc11ebf98a93 to your computer and use it in GitHub Desktop.

Select an option

Save patharanordev/13ab97889625c8100fb3dc11ebf98a93 to your computer and use it in GitHub Desktop.

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

When using cv2 in Dockerfile.

Adding library below to your Dockerfile to solve the issue :

RUN apt-get update
RUN apt-get install ffmpeg libsm6 libxext6  -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment