报错:UnavailableInvalidChannel: The channel is not accessible or is invalid解决方法

使用命令conda install -c conda-forge rpy2安装python模块时出现报错:

UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: None
channel url: http://cran.fhcrc.org
error code: 404

可以看出conda默认用http://cran.fhcrc.org链接安装rpy2,但显然我想让conda用conda-forge安装rpy2。

解决方法很简单,直接在.condarc文件中注释掉http://cran.fhcrc.org链接就行了。

如下所示:

原文地址:https://www.cnblogs.com/chenwenyan/p/14747010.html