I have used the command pip install opencv-python. I am getting the error when I am downloading.This is the error I am getting and there is more lines of code
This is the final error I got when the command stopped working
I have used the command pip install opencv-python. I am getting the error when I am downloading.This is the error I am getting and there is more lines of code
This is the final error I got when the command stopped working
You seem to be using python 3.10 in your environment. Since it is so new, no pre-built binaries are available for opencv-python and it tries to download source code and compile it on the fly, which fails, because the library is large and has complex dependencies.
What can you do?
You can check the pypi page and see that the latest whl for win64 is for cp39, so python 3.9. So you could do
conda install python=3.9 #install python 3.9 in your current env
pip install opencv-python
this should now pull the opencv_python-4.5.4.58-cp39-cp39-win_amd64.whl
and install that.
Even better would be however, to simply have conda
handle that for you:
conda install -c conda-forge py-opencv