Conda異常:CondaHTTPError: HTTP 000 CONNECTION FAILED for url ......

背景

今天使用conda create -name xxxxx python==3.8創(chuàng)建新環(huán)境時(shí),報(bào)錯(cuò)CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/current_repodata.json>

解決

經(jīng)過(guò)百度幾篇文章,得到最簡(jiǎn)單快速的解決方案

1. 打開(kāi)conda的環(huán)境配置文件.condarc,路徑是C:\Users\用戶(hù)名\.condarc

2.修改內(nèi)容并保存(修改成新華源、并且鏡像地址加上win-64,且一定是http

ssl_verify: true
show_channel_urls: true

channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/

3.再次執(zhí)行創(chuàng)建環(huán)境命令,成功

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容