Anaconda抛出HTTP错误,任何下载命令使用不了

今天使用Anaconda下载和更新都报错:

$ conda update anaconda-navigator
Solving environment: failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

`$ C:\Users\Z.Zhou\Anaconda3\Scripts\conda update anaconda-navigator`

  environment variables:
                 CIO_TEST=<not set>
               CONDA_ROOT=C:\Users\Z.Zhou\Anaconda3
                  EXEPATH=C:\Program Files\Git\bin
                 HOMEPATH=\Users\Z.Zhou
          MOZ_PLUGIN_PATH=C:\Program Files (x86)\Foxit Software\Foxit Reader\plugins\
                     PATH=C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users
                          \Z.Zhou\bin;C:\Rtools\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windo
                          ws\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wi
                          ndowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA
                          Corporation\PhysX\Common;C:\Program
                          Files\MATLAB\R2014a\runtime\win64;C:\Program
                          Files\MATLAB\R2014a\bin;C:\Program Files\MATLAB\R2014a\polyspace\bin;C
                          :\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\Syst
                          em32\WindowsPowerShell\v1.0\;C:\Program
                          Files\Intel\WiFi\bin\;C:\Program Files\Common
                          Files\Intel\WirelessCommon\;C:\Program Files (x86)\Microsoft SQL
                          Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files
                          (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files
                          (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files
                          (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program
                          Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program
                          Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft
                          SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
                          Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files
                          (x86)\Microsoft Visual Studio
                          9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft
                          SQL Server\100\DTS\Binn\;C:\Program Files\Git\cmd;C:\Program
                          Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Z.Zhou\Ana
                          conda3;C:\Users\Z.Zhou\Anaconda3\Library\mingw-w64\bin;C:\Users\Z.Zhou
                          \Anaconda3\Library\usr\bin;C:\Users\Z.Zhou\Anaconda3\Library\bin;C:\Us
                          ers\Z.Zhou\Anaconda3\Scripts;C:\Users\Z.Zhou\AppData\Local\Microsoft\W
                          indowsApps;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Fi
                          les\Intel\WirelessCommon\;C:\Users\Z.Zhou\AppData\Local\GitHubDesktop\
                          bin;C:\Users\Z.Zhou\AppData\Local\Microsoft\WindowsApps;C:\Program
                          Files\Microsoft VS Code\bin
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
                          PowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL
                          Server\130\Tools\PowerShell\Modules\
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : None
       user config file : C:\Users\Z.Zhou\.condarc
 populated config files : C:\Users\Z.Zhou\.condarc
          conda version : 4.5.4
    conda-build version : 3.10.5
         python version : 3.6.5.final.0
       base environment : C:\Users\Z.Zhou\Anaconda3  (writable)
           channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\Z.Zhou\Anaconda3\pkgs
                          C:\Users\Z.Zhou\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\Z.Zhou\Anaconda3\envs
                          C:\Users\Z.Zhou\AppData\Local\conda\conda\envs
                          C:\Users\Z.Zhou\.conda\envs
               platform : win-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.16299
          administrator : False
             netrc file : None
           offline mode : False


V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/noarch/repodata.json.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.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/noarch/repodata.json.bz2 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00000231CDC835C0>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',))",),)

A reportable application error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]: y
Upload did not complete.
Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running

    $ conda config --set report_errors true

一直提示提交错误报告,然并卵。

这可能是防火墙问题,使用命令

conda config --set ssl_verify false

搞定。

参考: https://stackoverflow.com/questions/42563757/conda-update-condahttperror-http-none

    原文作者:王诗翔
    原文地址: https://www.jianshu.com/p/777c7b7a3f3d
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞