Not able to deploy the app and keep getting "Building wheel for opencv-python" failed

This is my requirements.txt
numpy==1.19.5
opencv_python==3.4.11.39
scipy==1.7.3
streamlit==0.80.0
tensorflow==2.5.0

Building wheel for opencv_python (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [2073 lines of output]
      Not searching for unused variables given on the command line.
      CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
      -- Configuring incomplete, errors occurred!
  • Why do you use such old packages for streamlit and OpenCV?
  • Opencv version 3.4.11.39 is a “yanked” version
  • I would use opencv-python-headless==4.5.4.60 instead
  • I would use tensorflow-cpu instead of tensorflow on streamlit cloud
  • I would use the latest version of streamlit

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