conda更新源修改
(2022-11-13 10:23:26)
标签:
conda更新源配置文件位置condarc |
分类: Python |
conda 更新源修改
执行完 conda config --add xxx 命令后会在电脑中生成一个
.condarc文件
我的电脑(win10)更新源配置文件在
C:\Users\Administrator\.condarc
可以直接在这里添加、删除需要增减的更新源
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
#.condarc 更改为以下
channels:
show_channel_urls: true
default_channels:
custom_channels:
#.condarc
也可以修改 envs_dirs和pkgs_dirs的位置。可以通过conda config
--show 查看位置
envs_dirs:
pkgs_dirs: