UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: pypi/simple
channel url: http://mirrors.aliyun.com/pypi/simple
error code: 404
You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.
当在Anconda安装lightgbm出现上列报错时,是因为阿里云的上游未授权,改为默认的源即可恢复。
conda config --remove-key channels
只有再次输入上面这个命令,如果出现下面的提示,即说明可以设置好原来的源了。
CondaKeyError: 'channels': key 'channels' is not in the config file
然后再次下载这个源就可以了