Anaconda报错-PackagesNotFoundError: The following packages are not available from current channels:

Anaconda安装库时出现以下错误

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

Anaconda报错-PackagesNotFoundError: The following packages are not available from current channels:_第1张图片
解决办法
如果conda下载不行,可以通过pip命令安装

conda install opencv-python#无法安装
pip install opencv-python#可以安装

补充:网上其它方法博主也有尝试,但均失败

  • 第一种:更新anaconda

    参考博客链接

博主anaconda是最新版,采用下述图中方法无效,效果见下图
Anaconda报错-PackagesNotFoundError: The following packages are not available from current channels:_第2张图片

  • 第二种:通过anaconda search -t conda lifelines的命令方法

    参考博客链接

方法先输入anaconda search -t conda opencv-python,这样子就会显示可用的版本,见下图
Anaconda报错-PackagesNotFoundError: The following packages are not available from current channels:_第3张图片

然后选择适合自己的版本,比如,我选择的就是wheeler-microfluidics/opencv-python,在命令行中输入
conda install -c https://conda.anaconda.org/wheeler-microfluidics opencv-python
效果见下图
Anaconda报错-PackagesNotFoundError: The following packages are not available from current channels:_第4张图片

你可能感兴趣的:(【器】IDE)