【conda】安装opencv遇见的问题

1. 更换源的问题
最终我的.condarc文件的内容如下:

channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
- https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
show_channel_urls: true

安装opencv时下载来源为:https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main

2.PermissionError

Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling package ‘defaults::conda-4.5.4-py36_0’.
PermissionError(13, ‘Permission denied’)
Attempting to roll back.

Rolling back transaction: done

PermissionError(13, ‘Permission denied’)

需要更改文件夹的权限

最后用conda install opencv即可安装成功。

你可能感兴趣的:(opencv)