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

You receive the error ImportError libGL.so.1 cannot open shared object file No such file or directory when using OpenCV in your app deployed on Streamlit Cloud.

Include opencv-python-headless in your requirements file on Streamlit Cloud in place of opencv_contrib_python and opencv-python.

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.