Issues with OpenCV installation
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve. PackagesNotFoundError: The following packages are not available from current channels: - capstone Current channels: - https://conda.anaconda.org/conda-forge/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch To search for alternate channels that may provide the conda package you're
looking for, navigate to https://anaconda.org and use the search bar at the top of the page. Can someone help as to what I am doing wrong?
I had real issues getting OpenCV installed and working on Visual Code or any of the other IDE's.
To solve the issue I eventually had to:
1. Uninstall Anaconda completely.
2. Download the version of Anaconda used by Giles in the video from here : https://repo.anaconda.com/archive/, (It was this one for my pc https://repo.anaconda.com/archive/Anaconda3-2019.07-Windows-x86_64.exe)
3. I ran the initial code suggested in video (conda -V, conda update conda etc.) but instead of running the code suggested in the video (conda install -c conda-forge capstone) I used the following code:
conda install opencv
That worked for me, hopefully helps anyone else with the same issue.
Thanks to this answer for the above code: https://stackoverflow.com/a/57152021
The provided instructions in the course are incorrect.
The correct command is
conda install -c conda-forge opencv
conda install --help you will see that the -c flag tells conda which channel to install the package from.
The command provided in the course erroneously uses the environment (called capstone) as the second argument of the install command.
PackagesNotFoundError: The following packages are not available from current channels: -capstone
This error is evidence to the user that the package the program is attempting to install is '-capstone', rather than opencv