1. 下载Miniconda

Miniconda3-latest-Linux-x86_64.sh下载到/opt/路径

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
2. 安装Miniconda

2.1 执行以下命令进行安装,并按照提示操作,直到安装完成。

bash Miniconda3-latest-Linux-x86_64.sh

2.2 一直按回车键,直到出现Please answer 'yes' or 'no':' 输入yes

2.3 指定安装路径,回车默认。

2.4 是否初始化Miniconda3,输入yes

Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> yes

2.5 出现以下字样,即为安装完成

Thank you for installing Miniconda3!

2.6 如果你不希望在启动时自动激活 conda 的基础环境,你可以设置 auto_activate_base 参数为 false

conda config --set auto_activate_base false

2.7 查看conda 版本

conda --version
3. 设置conda镜像源

3.1 查看镜像源:

conda config --show channels

3.2 设置镜像源:

清华源

#包含了一些基本的 Python 包、库和工具。
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

#这是 Anaconda 主要的通道,包含了大量的 Python 包和工具。如果你主要使用 Python 包,这是一个必要的通道。
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

#Conda Forge 是社区驱动的通道,包含了许多额外的 Python 包和工具。
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

conda config --set show_channel_urls yes

中科大源

# 主包源,包含大部分常见的 Conda 包
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 Forge 源,提供了社区维护的各种开源包,适用于需要更广泛包支持的情况
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/

# MSYS2 源,提供 Windows 构建工具和相关依赖包
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/

# Bioconda 源,专注于生物信息学和生命科学领域的工具和库
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/

# Menpo 源,提供计算机视觉和图像处理相关的工具和库
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/

conda config --set show_channel_urls yes

3.3 删除镜像源:

conda config --remove channels https://***
Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐