import cv2 fails with opencv-python

Had trouble deploying Flask app with opencv-python in requirements.txt
App would fail at the import cv2 line
Solved by using opencv-python-headless instead of opencv-python since the server does not need the UI dependencies.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.