解决环境失败:初始冻结求解失败。尝试使用灵活求解重试

1. 问题描述

Win10系统,通过Anaconda安装Rstudio,使用语句:

conda install rstudio

这时报包含如下内容的错误:

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.

2. 解决方法

网上搜索了不少方法,都没有效果。这时看到了
conda怎么使用清华源?设置channel镜像详解

发现是因为之前添加的清华源已经不能用了。于是首先删除之前添加过的源:

conda config –remove-key channels

然后添加正确的清华源:

conda config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config –set show_channel_urls yes

这是再运行

conda install rstudio

速度如飞!成功安装。

物联沃分享整理
物联沃-IOTWORD物联网 » 解决环境失败:初始冻结求解失败。尝试使用灵活求解重试

发表评论