Anaconda换源

1. conda换源

conda config --set show_channel_urls yes

vim .condarc

 

channels:

  - defaults

show_channel_urls: true

default_channels:

  - http://mirrors.aliyun.com/anaconda/pkgs/main

  - http://mirrors.aliyun.com/anaconda/pkgs/r

  - http://mirrors.aliyun.com/anaconda/pkgs/msys2

custom_channels:

  conda-forge: http://mirrors.aliyun.com/anaconda/cloud

  msys2: http://mirrors.aliyun.com/anaconda/cloud

  bioconda: http://mirrors.aliyun.com/anaconda/cloud

  menpo: http://mirrors.aliyun.com/anaconda/cloud

  pytorch: http://mirrors.aliyun.com/anaconda/cloud

  simpleitk: http://mirrors.aliyun.com/anaconda/cloud

 

conda clean -i

conda create -n name python=3.9

conda info --envs 

activate name

conda deactivate

conda remove -n name --all

 

参考地址:

https://blog.csdn.net/weixin_44942303/article/details/121977449

https://blog.csdn.net/weixin_44536804/article/details/123142181

https://www.quanxiaoha.com/conda/conda-update-channel.html

https://blog.csdn.net/imok1234567/article/details/123997803

 

posted @ 2022-11-09 12:13  盛夏夜  阅读(148)  评论(0编辑  收藏  举报