Forum Discussion

sliu736's avatar
sliu736
New Member
1 year ago
Solved

ultralytics libGL error

Hi I am trying to load cv2 package in fabrics notebook and the error is: 

ImportError: libGL.so.1: cannot open shared object file: No such file or directory
I've tried to install both opencv-python and opencv-python-headless, but neither of them works. 

 

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi, sliu736 

    Thanks for FabianSchut's positive reply. When I install only the opencv-python package I get the same error as you, but after installing the opencv-python-headless package, the import command executes fine. You can try installing both packages


    Best Regards,
    Yang

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know.
    Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

6 Replies