conda install xxx 出现如下报错:

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/xxxxx.tar.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

解决方法一

出现错误即是下载失败,配置清华大学镜像源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

解决方法二

如果清华大学镜像源里面没有这个库,那么还是会从原来的镜像https://repo.anaconda.com/pkgs/main/里面下载。

这里解决方法是使用迅雷等其他下载器将.tar.bz2下载到本地,执行本地安装:

conda install --use-local xxxx.tar.bz2

如果出现错误:

CondaVerificationError
....
specified in the package manifest cannot be found.

需要清理之前的缓存:

conda clean --packages --tarballs

然后再重新执行本地安装

相关文章:

  • 2022-02-23
  • 2021-09-01
  • 2021-04-06
  • 2021-04-28
  • 2021-08-06
  • 2021-09-03
猜你喜欢
  • 2020-03-26
  • 2021-07-22
  • 2022-12-23
  • 2021-10-31
  • 2021-08-11
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案