CondaError: Cannot link a source that does not exist.

晚上跑论文图像的时候发现自己的sklearn.metrics版本有些低,报错告诉我davies_bouldin_score不存在。我很纳闷,前段时间在学校还好好的,怎么现在就这样了。于是开始百度,就有了下面的过程。

1. 报错

# 我执行的更新
conda update scikit-learn
# 本来是好好的,但是下载的速度真的慢的惊人

速度慢引起的更换镜像源

于是更换镜像源

# 中科大亲测可用(清华源会报错,不可用)
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
# 显示安装通道
conda config --set show_channel_urls yes
# 恢复默认的源设置
conda config --remove-key channels

兴高采烈继续安装

网速是真的快,一下就报错了。完美,白玩了。

img

报错信息

ERROR conda.core.link:_execute_actions(337): An error occurred while installing package ‘https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge::tqdm-4.56.0-pyhd8ed1ab
_0’.
CondaError: Cannot link a source that does not exist. D:\Software\Anaconda\Scripts\conda.exe
Attempting to roll back.

2. 解决方案

解决方案比较简单,参考网上的一篇博客: https://blog.csdn.net/comli_cn/article/details/102509886/

# 先安装tqdm即可
conda install tqdm -f
# 然后继续更新即可
conda update scikit-learn

Keep thinking, keep coding! 2021年1月27日22:58:12 写于九江

  • 6
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值