Collecting package metadata (current_repodata.json): failed # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
时间: 2023-10-16 08:09:27 浏览: 546
针对Collecting package metadata (current-repodata.json)- faile的解决
5星 · 资源好评率100%
引用:【环境配置】Collecting package metadata (currentodata.json)_ failed的问题解决。
引用:conda创建环境报错了,报了如下这一堆: Collecting package metadata (current_repodata.json): failed UnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: simple channel url: https://pypi.tuna.tsinghua.edu.cn/simple error code: 404 You will need to adjust your conda configuration to proceed. Use `conda config --show channels` to view your configuration's current state, and use `conda config --show-sources` to view config file locations.
引用:生成.condarc文件如上图所示,在用户目录下建立.condarc文件,添加清华源: channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ ssl_verify: true 。
问题:请告诉我,Collecting package metadata (current_repodata.json): failed # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
当出现"Collecting package metadata (current_repodata.json): failed"错误时,这通常是由于conda配置的问题导致的。具体地说,如果你看到报错信息中的"UnavailableInvalidChannel: The channel is not accessible or is invalid",这意味着你的conda配置中存在无效的或无法访问的频道。
为了解决这个问题,你可以按照以下步骤进行操作:
1. 使用命令`conda config --show channels`查看当前的配置状态。
2. 使用命令`conda config --show-sources`查看配置文件的位置。
3. 在用户目录下建立一个.condarc文件,并添加清华源。你可以使用上述引用中提供的清华源链接,将以下内容添加到.condarc文件中:
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
ssl_verify: true
通过以上步骤,你可以解决"Collecting package metadata (current_repodata.json): failed"错误,并成功配置conda环境。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [针对Collecting package metadata (current-repodata.json)- faile的解决](https://download.csdn.net/download/qq_44747572/87809122)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Collecting package metadata (current_repodata.json): failed](https://blog.csdn.net/qq_22059611/article/details/129151676)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文