I think it is the same problem as reported in Can't install OpenCV3 on Anaconda3 python 3.6 on macOS" of our Stack Overflow home.This conflict occurs because Python 3.6 installed by Anaconda is the new version and the existing package is not able to follow.
#Check the current Python version $ conda list | grep python python 3.6.12 # Create environment for Python 3.5.x and activate $ conda create-nopencv3 python=3.5 $ source activate opencv3 # Determine the Current Python Version $ conda list | grep python python 3.5.22 # Install menpo/opencv3 in this environment $ conda install-c menpo opencv3
Use the opencv package of conda-forge.
$conda install-conda-forge openencv=3
Since Python 3.6.1 + OpenCV 3.2.0 is already available in Ubuntu for conda-forge or menpo, a package may be available for macOS, but until then you need to do the above.You can check the
conda search command or the Anaconda Cloud Files tab for the default package (you can check the here
After installation, you can check the OpenCV version as follows:
© 2022 OneMinuteCode. All rights reserved.