如何在anaconda中配置清华大学的镜像源
时间: 2024-06-10 16:06:36 浏览: 32
您可以在anaconda的命令行中输入以下命令进行配置:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
这样就可以设置清华大学的镜像源了。
相关问题
anaconda清华镜像源配置
你可以按照以下步骤配置Anaconda使用清华镜像源:
1. 打开终端或命令提示符,进入Anaconda的安装目录。
2. 运行以下命令备份原始的Anaconda镜像源配置文件:
```
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
```
3. 运行以下命令修改Conda Forge镜像源:
```
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
```
4. 运行以下命令修改默认的镜像源:
```
conda config --set default_channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
```
5. 配置完成后,可以使用以下命令验证镜像源是否生效:
```
conda info
```
如果显示的信息中包含了清华大学的镜像源地址,说明配置成功。
注意:在配置镜像源之前,建议备份原始的配置文件,***
Anaconda终端中如何配置常用镜像源
在 Anaconda 终端中配置常用镜像源可以提高包的下载速度,步骤如下:
1. 打开 Anaconda 终端,输入以下命令:
```
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
```
这里以清华大学的镜像源为例,你也可以选择其他镜像源。
2. 在终端中输入以下命令,查看当前配置:
```
conda config --show
```
如果看到输出中包含了刚刚添加的镜像源,则说明配置成功。
3. 如果想要删除已经配置的镜像源,可以使用以下命令:
```
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
```
以上就是在 Anaconda 终端中配置常用镜像源的方法。
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_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)