conda 切换 清华源
时间: 2023-11-20 09:49:47 浏览: 53
要在 conda 中切换到清华源,可以使用以下命令:
```
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
```
这将添加清华源的免费和主要通道,并将 `show_channel_urls` 设置为 `yes`,以显示当前使用的通道。
相关问题
conda清华镜像源
您可以通过以下步骤将Conda的镜像源切换为清华大学的镜像源:
1. 打开终端或命令提示符。
2. 输入以下命令,以备份原始的`.condarc`文件(如果存在):
```
conda config --show > ~/.condarc.backup
```
3. 输入以下命令,创建或编辑`.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
```
4. 输入以下命令,测试是否成功切换到清华镜像源:
```
conda info
```
如果镜像源显示为清华大学的地址,则说明切换成功。
通过将Conda的镜像源切换为清华大学的镜像源,您可以加快软件包的下载速度,特别是在中国地区使用Conda时会有较大的提升。
conda的清华镜像源
清华镜像源是指使用清华大学提供的镜像来加速conda包的下载和安装。可以通过以下命令将清华镜像源添加到conda的配置文件中:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.*** 其他可以使用的conda国内镜像源有哪些?
2. 如何在conda中切换镜像源?
3. 如何验证是否成功切换到了清华镜像源?
相关推荐
![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)