下载

https://docs.conda.io/en/latest/miniconda.html
https://www.anaconda.com/products/distribution

*下载
https://repo.anaconda.com/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh

bash Miniconda3-latest-Linux-x86_64.sh

切换国内源

豆瓣源
conda config --add channels https://pypi.douban.com/anaconda/cloud/conda-forge/
conda config --add channels https://pypi.douban.com/anaconda/cloud/msys2/
conda config --add channels https://pypi.douban.com/anaconda/cloud/bioconda/
conda config --add channels https://pypi.douban.com/anaconda/cloud/menpo/
conda config --add channels https://pypi.douban.com/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes

#清华源
conda config --add channels  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
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/pytorch/
conda config --set show_channel_urls yes

#临时加速
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 --set show_channel_urls yes
查看已经添加的源:
conda config --get channels
conda clean -i  # 清除索引缓存
conda config --show channels  # 入命令检查channels
conda config --remove-key channels

常用操作命令

#查找包
conda search tensorflow
安装包指定版本
conda install gensim==3.8.1

版本对照表

miniconda3 python tensorflow
4.12.0
4.11.0 3.9.7
4.10.3 3.9.5
4.9.2 3.8.5
4.8.3 python3.8.3 tensorflow1.14-2.x
miniconda3:4.8.2 python3.7.6
4.7.12 3.7.4
4.6.14 3.7.3
4.5.12 3.7.1
4.5.11 3.7.0 tensorflow1.14
4.5.4 3.6.5 tensorflow1.12
4.4.10 3.6.4