Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
satishupadhyay
New Member

Import cv2 error in the notebook

Hi,

I am trying to read images using OpenCV resize and save them back to lakehouse.

I have installed `%pip install opencv-python imutils` in the notebook but when I try to import cv2, it gives the error as below.

 

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

 

 

Has anyone else faced the same issue?

1 REPLY 1
Anonymous
Not applicable

looks like it's having trouble with a dependency. Try creating a new environment with the needed libraries pre-installed. 

alxdean_0-1708097414374.png

it will slow down your spark boot up time, but might solve the issue. 

Helpful resources

Announcements
December Fabric Update Carousel

Fabric Monthly Update - December 2025

Check out the December 2025 Fabric Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.