linux系统中更换conda镜像源
时间: 2023-10-18 16:29:04 浏览: 235
要在Linux系统中更换conda镜像源,可以按照以下步骤进行操作:
1. 打开终端,并使用以下命令编辑.condarc配置文件:
```
sudo vim ~/.condarc
```
2. 在打开的配置文件中,将镜像源的地址替换为所需的国内镜像源。例如,可以将以下地址添加到channels列表中:
```
- https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
- https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
```
3. 如果需要恢复到默认情况,可以使用以下命令删除配置文件中的channels:
```
conda config --remove-key channels
```
这样就可以在Linux系统中更换conda镜像源了。请注意,在更换镜像源之前,请确保备份并了解对系统和软件包管理的潜在影响。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [更换 conda、pip、apt 镜像源为国内镜像源](https://blog.csdn.net/qq_43522889/article/details/127800868)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Linux环境中,切换conda镜像源(嘎嘎好用,下载pytorch又快又稳定)](https://blog.csdn.net/qq_42548340/article/details/124978612)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文