linux下anaconda换源

简介: linux下anaconda换源

换源方法

1、打开配置文件

sudo gedit ~/.condarc

2、把下面内容复制到文件中,覆盖原来的内容

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud//pytorch/
  - defaults
show_channel_urls: true
channel_alias: http://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
ssl_verify: true

一些常用操作

恢复默认源:conda config --remove-key channels

删除旧镜像源:conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/

添加新镜像源:conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/

显示目前的源:conda config --show channels

参考博客

https://blog.csdn.net/weixin_40977054/article/details/115524523

https://blog.csdn.net/weixin_44706512/article/details/104652809

https://blog.csdn.net/weixin_39719427/article/details/116938432

目录
相关文章
|
10月前
|
Linux Python
百度搜索:蓝易云【Linux系统下安装使用anaconda教程。】
以上是在Linux系统下安装和使用Anaconda的基本步骤。安装完成后,你可以根据自己的需要创建环境、安装软件包,并使用Python和数据科学工具进行开发和分析工作。
352 0
|
2月前
|
Ubuntu Linux Shell
Linux Ubuntu配置Anaconda与Python的方法
vLinux Ubuntu配置Anaconda与Python的方法
|
7月前
|
Ubuntu 前端开发 Linux
Python(四)开源的Python包管理器 anaconda——linux安装
首先,在ubuntu下,anaconda是没有图形化界面的,只能是命令行操作。 去官方网站下载他的ubuntu的安装包(x86) 访问官方网址下载:
73 0
|
机器学习/深度学习 人工智能 Linux
anaconda conda 切换为国内源 、windows 和 Linux配置方法、 添加清华源——【一文读懂】
请问为什么我使用 Conda 搭建一个深度学习环境半个多小时都没成,而你10分钟就随手搭建一个环境; 讲道理,这就像搬砖,搬的久了,还不能允许我一天多拉几车吗
4827 0
anaconda conda 切换为国内源 、windows 和 Linux配置方法、 添加清华源——【一文读懂】
|
12月前
|
机器学习/深度学习 人工智能 Linux
Linux和Windows系统下安装深度学习框架所需支持:Anaconda、Paddlepaddle、Paddlenlp、pytorch,含GPU、CPU版本详细安装过程
Linux和Windows系统下安装深度学习框架所需支持:Anaconda、Paddlepaddle、Paddlenlp、pytorch,含GPU、CPU版本详细安装过程
Linux和Windows系统下安装深度学习框架所需支持:Anaconda、Paddlepaddle、Paddlenlp、pytorch,含GPU、CPU版本详细安装过程
|
PyTorch Linux 算法框架/工具
Linux安装Anaconda(Anaconda3-2022.10-Linux-x86_64.sh版本)(2)
Linux安装Anaconda(Anaconda3-2022.10-Linux-x86_64.sh版本)(2)
326 0
Linux安装Anaconda(Anaconda3-2022.10-Linux-x86_64.sh版本)(2)
|
Shell Linux
Linux安装Anaconda(Anaconda3-2022.10-Linux-x86_64.sh版本)(1)
Linux安装Anaconda(Anaconda3-2022.10-Linux-x86_64.sh版本)(1)
534 0
Linux安装Anaconda(Anaconda3-2022.10-Linux-x86_64.sh版本)(1)
|
Linux Shell 开发工具
Linux下的Anaconda的配置
本文介绍Linux下的Anaconda的配置。
483 0
Linux下的Anaconda的配置
|
Ubuntu Linux Python
|
Ubuntu Linux Python
在linux下安装anaconda
在安装python环境的时候,如果我们的内存够大的话建议安装anaconda,可以同步办我们安装很多东西,比如jupyter notebook等
在linux下安装anaconda