ubantu修改anaconda镜像源
时间: 2023-10-18 12:26:55 浏览: 104
Anaconda换国内源
在Ubuntu上修改Anaconda镜像源,可以按照以下步骤进行操作:
1. 打开终端,并输入以下命令打开Anaconda配置文件:
```bash
nano ~/.condarc
```
2. 在打开的配置文件中,将默认的镜像源注释掉,添加清华镜像源,示例如下:
```
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
```
3. 保存并退出配置文件,按下Ctrl + X,然后按下Y,最后按下Enter。
4. 现在,Anaconda的镜像源已经被修改为清华镜像源。你可以使用以下命令来验证是否修改成功:
```bash
conda info
```
通过上述步骤,你就成功修改了Ubuntu系统上Anaconda的镜像源。这将帮助你更快地下载和安装Anaconda中的包和库。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Ubuntu——Anaconda环境配置及镜像修改](https://blog.csdn.net/guozhengxian123/article/details/130726596)[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_2"}}] [.reference_item style="max-width: 50%"]
- *2* [ubuntu Anaconda的安装、镜像源更改和python虚拟环境的配置细节](https://blog.csdn.net/weixin_43702653/article/details/125351698)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文