conda install 下载慢 报错解决

下载失败

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.

解决方法一

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

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/里面下载。url

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

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

若是出现错误:code

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

须要清理以前的缓存:ci

conda clean --packages --tarballs

而后再从新执行本地安装get

相关文章
相关标签/搜索