清华镜像源 condarc
时间: 2023-09-20 17:06:11 浏览: 89
Anaconda虚拟python3.6+tensorflow2.1环境压缩包、.condarc配置文件(内有清华镜像源)
5星 · 资源好评率100%
为了使用清华镜像源来加快PyCharm下载所需要的包的速度,在c盘用户目录下需要创建或修改一个名为.condarc的文件。具体操作如下:
1. 找到用户目录下的.condarc文件,可以使用记事本或其他文本编辑器打开。
2. 如果没有找到该文件,则可以先执行命令`conda config --set show_channel_urls yes`来生成该文件。
3. 将文件中的内容替换为以下代码:
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
4. 保存文件并关闭编辑器。
这样就完成了清华镜像源的配置,PyCharm下载包的速度应该会更快了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [conda 配置清华镜像](https://blog.csdn.net/Agoni__Rocky/article/details/130346449)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [anaconda清华镜像源使用](https://blog.csdn.net/weixin_46288319/article/details/124427980)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [anaconda设置.condarc文件内清华源](https://blog.csdn.net/qq_41897154/article/details/117708305)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文