安装完 minconda后
有一个默认的 base环境
bash 进入
conda info
conda config --remove-key channels # 恢复原镜像
conda config --show channels
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- 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/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --set show_channel_urls yes
vi ~/.condarc 删除default
conda update --all
# 常用命令
conda create -n test python=3.8
conda env list
conda activate sgview
conda deactivate
设置pip 镜像源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
apt-get update
apt install git
标签:cn,mirrors,--,环境,conda,https,config
From: https://www.cnblogs.com/hanfe1/p/17310568.html