cv2 package installation failed
Error reported in pycharm
PackagesNotFoundError: The following packages are not available from current channels:
The error box prompts to execute the following statement on the command line:
conda activate /home/niu/anaconda3/envs/cannab
/home/niu/anaconda3/bin/conda install -p /home/niu/anaconda3/envs/cannab cv2 -y
Press Ctrl+Alt+T to open the terminal, copy and paste the above command:
The error reported is the same as that in pycharm, so it can be ruled out as a problem with pycharm.
Press the last prompt on the command line: Enter the conda official website
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.
Enter Conda official website
Search for cv2 in the search box and select the conda version
Copy the prompt at the bottom of the page and execute it in the terminal
conda install -c "bioconda/label/gcc7" bioconductor-mgu74cv2.db
Successful installation