cv2 installation failed in Pycharm

cv2 package installation failed

Error reported in pycharm

PackagesNotFoundError: The following packages are not available from current channels:
Error reported in pycharm, unable to install cv2 packageThe 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:
Insert image description hereThe 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
Insert image description here
Search for cv2 in the search box and select the conda version
Insert image description here

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

Guess you like

Origin blog.csdn.net/ArcGis_Niu/article/details/128255484