您当前的位置: 首页 >  http

Better Bench

暂无认证

  • 2浏览

    0关注

    695博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

【Mac 系统】解决已有清华镜像但出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url

Better Bench 发布时间:2021-03-02 15:22:53 ,浏览量:2

问题

原本添加的清华镜像是

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环境时,但是还是出现了下载超时

conda create -n py36 python=3.6

错误CondaHTTPError: HTTP 000 CONNECTION FAILED for url

解决

因为是Mac os,镜像的路径需要指定一下。先删除原先的镜像,再添加新的镜像

  • 删除镜像

conda config --remove-key channels

  • 添加macos的清华镜像
conda config --add https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/osx-64/
conda config --add https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/osx-64/
  • 查看添加的镜像

conda config --show

关注
打赏
1665674626
查看更多评论
立即登录/注册

微信扫码登录

0.0397s