0

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

I am on windows and working on jupyter notebook online and I am getting this error: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-88aa35f4dffc> in <module> ----> 1 import cv2 2 import time 3 import numpy as np 4 import matplotlib.pyplot as plt /srv/conda/envs/notebook/lib/python3.6/site-packages/cv2/__init__.py in <module> 3 import sys 4 ----> 5 from .cv2 import * 6 from .data import * 7 ImportError: libGL.so.1: cannot open shared object file: No such file or directory

25th Sep 2021, 4:43 PM
Hassan Bashir
Hassan Bashir - avatar
4 odpowiedzi
0
Hello Hassan, Please tell me where you run this code if on windows pc or on sololearn code ?!
25th Sep 2021, 4:59 PM
Kyrillos Akram
Kyrillos Akram - avatar
0
I write it in Jupyter notebook.
25th Sep 2021, 6:04 PM
Hassan Bashir
Hassan Bashir - avatar
0
Run this code to check if opencv-python even exist Assuming you use python 3.7 On cmd if windows py -3.7 -m pip list Or on terminal if linux pip3 list If not exist check Simon Sauter link it would be very useful if you are using linux
25th Sep 2021, 6:43 PM
Kyrillos Akram
Kyrillos Akram - avatar