title: Getting error in Jupyter Notebook when importing opencv after installation: libGL.so.1: cannot open shared object file: No such file or directory
body: <p>I have installed python3 in my ubuntu 20.04LTS operating system. I have also installed the Jupyter notebook directly from the snap store. Now I am trying to install OpenCV from jupyter notebook using: <code>pip install OpenCV-python.</code><br />
  I have also tried: <code>!pip install OpenCV-python</code></p>
  <p>In both the case it says requirement already satisfied. Below is the screenshot:
  <a href="https://i.stack.imgur.com/R1kIj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R1kIj.png" alt="enter image description here" /></a></p>
  <p>Whenever I am trying: <code>import cv2.</code><br />
  It gives error:<code>libGL.so.1: cannot open shared object file: No such file or directory.</code><br />
  Though I have installed OpenCV through the terminal in python3 and it successfully gets imported in python3 terminal. But not able to import in Jupyter notebook.</p>
  <p>Please suggest, how can I resolve this issue and import OpenCV to Jupyter Notebook.</p>
  <p>Any link where I can learn and understand how these libraries interact with the operating system when installed through python and Jupyter notebooks will be helpful.<br />
  Thanking you!</p>