下載失敗
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