- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ultralytics libGL error
Hi I am trying to load cv2 package in fabrics notebook and the error is:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I look at the documentation of the cv2, you should only have one package installed at a time: https://pypi.org/project/opencv-python/. Can you try to uninstall all four potential packages:
opencv-python
opencv-contrib-python
opencv-python-headless
opencv-contrib-python-headless
and reinstall only one?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And probably you want to reinstall the opencv-python-headless, since that one is less depend on other packages: https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-n...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi here is the list of packages I have.
And now cv2 cant be found. So confusing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you create a new environment in Fabric and install the headless version once there?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, that is already my current solution. And more confusing is that even if the only package installed was opencv-python-headless, opencv-python still exists in the pip list.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Fabric Monthly Update - February 2025
Check out the February 2025 Fabric update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
12-26-2024 01:23 AM | |||
11-10-2023 08:52 AM | |||
03-13-2024 07:12 AM | |||
10-26-2023 06:04 AM | |||
10-24-2023 08:14 AM |