mamba install .....:File not valid: file size doesn‘t match expectation (/home/itis/anaconda3/pk_..

本文介绍了解决Anaconda使用USTC镜像源出现问题的方法,包括如何更改配置以使用阿里云和清华大学的镜像源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

@[TOC](mamba install …:File not valid: file size doesn’t match expectation (/home/itis/anaconda3/pk_…))

大概意思就是ustc镜像不大行了(虽然网上说重定向?但我这还是出现了问题…),将镜像转化为阿里云之类并且把ustc的删了,要删除!

1.查看镜像配置

conda config --show channels           

2.出现ustc的那几列都删除

conda config --remove channels https://…

3.再加上其他的镜像
conda config --add channels https://…

conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main/linux-64
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/free
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64
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

4.最后:
最后变成这样再install就好了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值