首页 > 其他分享 >conda配置国内源

conda配置国内源

时间:2024-08-18 19:52:39浏览次数:10  
标签:channels -- 配置 国内 conda tom edu config

简介:Conda 是一个开源的软件包管理系统和环境管理系统,用于安装多个版本的软件包及其依赖关系,并在它们之间轻松切换。Conda 是为 Python 程序创建的,适用于 Linux,OS X 和Windows,也可以打包和分发其他软件。由于某些原因,有时我们需要设置国内源,优化网络配置。

历史攻略:

docker:更换镜像源

miniconda:安装IPython

ubuntu apt 更换阿里云源

miniconda的安装和基本使用

miniconda:安装Jupyter Notebook

centos7.6:安装python、miniconda

pip安装第三方库全攻略:普通安装、安装whl后缀文件、使用国内镜像安装

操作步骤:

# 删除默认的conda镜像源
conda config --remove channels defaults

# 添加国内的镜像源 - 清华镜像源
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 --show channels

# 清除缓存
conda clean -i

运行参考结果:

(py312) tom@tom:~/tests$ conda config --remove channels defaults
(py312) tom@tom:~/tests$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
(py312) tom@tom:~/tests$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
(py312) tom@tom:~/tests$ conda config --show channels
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
(py312) tom@tom:~/tests$ conda clean -i
Will remove 1 index cache(s).
Proceed ([y]/n)? y

(py312) tom@tom:~/tests$ conda config --show channels
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
(py312) tom@tom:~/tests$

标签:channels,--,配置,国内,conda,tom,edu,config
From: https://blog.csdn.net/hzblucky1314/article/details/141304377

相关文章

  • Spring 事务配置类,完成数据库的转账
    1、完成基本的三层架构1.1创建Account表创建实体类Account1.2Service层写入AccountService接口Service层下写impl包定义AccountServiceImpl类实现接口AccountService@Service@Transactional@RequiredArgsConstructorpublicclassAccountServiceImpl......
  • 不用再找了,国内无限制使用GPT4o的方法【亲测好用】
    都知道ChatGPT很强大,聊聊天、写论文、搞翻译、写代码、写文案、审合同等等,无所不能~那么到底怎么使用呢?其实很简单了,国内AI产品发展也很快,很多都很好用了~我一直在用,建议收藏下来~  有最先进、最新的GPT模型,还有很多其他效率工具都是在各自领域,绝对领先地位的产品~①......
  • Teamcenter根据子项ID查询父项的查询配置
    1.选择【ItemRevision】,设置查询的规则:2.点击【提示】3.可以参照说明,一步步配置,也可以直接点击【在树中查找】 4.添加ID到查询条件中5.执行查看结果: ......
  • Apollo配置中心-配置热发布如何实现
    引言配置中心在微服务架构体系中是非常重要的基础设施服务,承担着分布式配置集中管理、配置热发布以及审计等重要的职责。本文主要探讨​​Apollo​​配置中心的配置热发布特性如何实现。配置热发布如何实现1、配置发布主流程如上图所示,配置发布的主流程如下:(1)用户通过​​Po......
  • 【Android驱动12】Modem编译和sim卡配置检测过程
    一,Modem编译1.1查看ReleseNote发现需要查看"Build_Configure_Modem_MOLY"这张表,解压MT67xx_(xxx)_MOLY.LR9.W1444.MD.LWTG.MP.Vx.tar.gz到某文件,并在make目录下查看支持的配置信息1.2执行的命令,开始编译modem,则是./make.sh"SM67xx(Lxx_xxx).mak"new1.3执行perl......
  • jenkins配置脚本
    pipeline{agentanytools{maven'Maven3.9.2'}stages{stage('拉取代码'){steps{gitbranch:'main',credentialsId:'chatx',url:'git路径'......
  • huggingface_hub cli 使用以及国内加速配置
    主要是一个简单记录,方便后续使用安装pipinstall-Uhuggingface_hub使用下载模型huggingface-clidownload--resume-downloadgpt2--local-dirgpt2下载数据huggingface-clidownload--repo-typedataset--resume-d......
  • 【Spring Boot】yaml配置注入
    配置文件SpringBoot使用一个全局的配置文件,配置文件名称是固定的applicationapplication.properties语法结构:key=valueapplication.yaml语法结构:key:空格valueapplication.yml语法结构:key:空格value(开发常用)我们可以在配置文件中修改Tomcat默认启......
  • nginx配置下载服务器(具备权限验证)
    大多数场景中,下载可以使用nginx直接代理,但缺少权限验证,下述方式下载通过后端校验,成功后转发请求nginx进行下载操作。前端代码:window.location.href="http://192.168.80.128:8080/download_file?fileName=8042200341080001_01.zip";直接打开访问指定的下载文件路径(我是用请......
  • 1.PEAP配置完整版本
    实验拓扑:sw:vlandatavlan5vlan10vlan18intf0/24swmoaccswaccvlan5spanning-treeportfastintf0/4swmoaccswaccvlan5spanning-treeportfastintvlan5ipadd137.78.5.158255.255.255.0aaanew-modelaaaauthenticationloginnoacslinenon......