conda安装opencv报错 failed with initial frozen solve

错误如下:、
(base) wgj@Think:~$ conda install -c anaconda opencv
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: - failed

1/创建一个新的用户,比如opencv

conda create opencv

2.激活这个用户

conda activate opencv

3.在当前用户下安装
3.1 官方:

conda install -c anaconda opencv 

3.2非官方

conda install -c conda-forge opencv

安装完成
Downloading and Extracting Packages
ca-certificates-2020 | 145 KB | ##################################### | 100%
python_abi-3.7 | 4 KB | ##################################### | 100%
certifi-2020.6.20 | 151 KB | ##################################### | 100%
openssl-1.1.1h | 2.1 MB | ##################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

参考:
https://github.com/conda/conda/issues/9367
https://anaconda.org/anaconda/opencv
https://anaconda.org/conda-forge/opencv

猜你喜欢

转载自blog.csdn.net/weixin_45885232/article/details/109035378