Unable to import cv2

Hey @AmeenBarech

Welcome to the Streamlit Community :tada::tada:

Since you haven’t listed your requirements.txt file so I am not certain about it but the most common fix for this error is replacing opencv-python with opencv-python-headless in the requirements file.

Do let me know if that fixes this issue or please attach some more details about the error.

Best,
Kanak

1 Like