anaconda更换镜像源
时间: 2023-10-30 08:05:26 浏览: 61
Anaconda 是一个非常流行的 Python 环境管理器和数据科学工具包,使用 Anaconda 安装的包通常都是从默认的镜像源下载的。然而,有时候默认的镜像源下载速度较慢,我们可以更换镜像源以提高下载速度。以下是更换 Anaconda 镜像源的步骤:
1. 打开 Anaconda Navigator 或者 Anaconda Prompt。
2. 在 Anaconda Navigator 中,点击 Environments 标签页,在对应的环境中点击右侧的三角形,选择 Open Terminal。
在 Anaconda Prompt 中,直接打开命令行窗口。
3. 在命令行中输入以下命令更换镜像源:
- 清华镜像源: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 --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
- 阿里云镜像源:conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/free/
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main/
conda config --set show_channel_urls yes
4. 更换成功后,可以使用以下命令查看当前镜像源:
conda config --show channels
输出结果中,新加入的镜像源会在列表中显示。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)