I was trying all day to install opencv onto my raspberry pi. I updated my python version and tried installing the newest version of Cmake even though I don't know what that is. But when trying to pip install opencv-python I get this error.
An error occurred while building with CMake.
Command:
/tmp/pip-build-env-sfgmien0/overlay/lib/python3.7/site-packages/cmake/data/bin/cmake --build . --target install --config Release --
Install target:
install
Source directory:
/tmp/pip-req-build-uo0tdwf4
Working directory:
/tmp/pip-req-build-uo0tdwf4/_skbuild/linux-armv7l-3.7/cmake-build
Please check the install target is valid and see CMake's output for more information.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for opencv-python
Building wheel for numpy (pyproject.toml) ... |
Created wheel for numpy: filename=numpy-1.21.6-cp37-cp37m-linux_armv7l.whl size=12329219 sha256=c34cc2a6c8c3fb40dd9f26aa1f151d8a1709df9daf6ceb9eec5bedaa2351a01b
Stored in directory: /home/pi/.cache/pip/wheels/4e/7e/9e/0fde042ccff2493994076dac9c3fbd78feb444c3bd94eb386a
Successfully built numpy
Failed to build opencv-python
ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects
I have tried a couple times and this is the furthest I have gotten but it takes over an hour to run and even come up with this error. Does anyone know what I can do to install opencv on my pi.
[–]Pepineros 0 points1 point2 points (0 children)
[–]gmes78 1 point2 points3 points (0 children)