Last answered:

31 Mar 2022

Posted on:

10 Apr 2020

0

Issues with OpenCV installation

When I try to type in the command - "conda install -c conda-forge capstone" I get the following error: CAPSTONE is the workspace where I want to install OpenCV (base) PS C:\WINDOWS\system32> conda install -c conda-forge capstone
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://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/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? 
3 answers ( 0 marked as helpful)
Instructor
Posted on:

13 Apr 2020

0
Hi Aveek,  thanks for reaching out. You could look at the stackoverflow thread, were a similar problem is being discussed: https://stackoverflow.com/questions/48493505/packagesnotfounderror-the-following-packages-are-not-available-from-current-cha One of the suggestions they offer is to use conda config --append channels conda-forge, instead of install. Could you give that a go and let us know if it works?   Best,  Eli
Posted on:

24 Apr 2021

1

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

Cheers,
Mark

Posted on:

31 Mar 2022

0

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

Submit an answer