# Trouble in pip installing vtk-osmesa

**URL:** https://discourse.vtk.org/t/trouble-in-pip-installing-vtk-osmesa/14890
**Category:** Support
**Tags:** python
**Created:** [November 19, 2024, 12:55am UTC](https://discourse.vtk.org/t/trouble-in-pip-installing-vtk-osmesa/14890 "2024-11-19T00:55:08Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Ingmar](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/i/cc9497/32.png) [@Ingmar](https://discourse.vtk.org/u/Ingmar)
#### Post date: [November 9, 2025, 5:08pm UTC](https://discourse.vtk.org/t/trouble-in-pip-installing-vtk-osmesa/14890/5 "2025-11-09T17:08:57Z")

</div>

Dear @jaswantp ,  
I understand that nowadays the “vtk” wheel should be used directly, however I am not entirely sure how to enforce fallback to osmesa (or egl) for instance. My tests run out of a custom docker container, which then generates: ``ImportError: libXrender.so.1: cannot open shared object file: No such file or directory``

I am not sure what I am supposed to do based on [Runtime settings - VTK documentation](https://docs.vtk.org/en/latest/advanced/runtime_settings.html) and [Simplified python wheel for VTK - Development - VTK](https://discourse.vtk.org/t/simplified-python-wheel-for-vtk/14329)

Any suggestions how to fix this? Is there any python option I can manipulate?

---

_[View the full topic](https://discourse.vtk.org/t/trouble-in-pip-installing-vtk-osmesa/14890)._
