使用'conda update --all'时为什么会出现以下错误?如何解决?

时间:2017-08-16 11:46:26

标签: python anaconda conda

我在win-64上使用python 3.6.0运行conda 4.3.18。直到最近,我一直在使用conda成功运行单独的虚拟环境,并且没有任何问题。今天我无法在任何环境中更新任何内容。使用conda update --all时出现以下错误:

Fetching package metadata ...........ERROR requests.packages.urllib3.connection:
_match_hostname(360): Certificate did not match expected hostname: conda.binstar
.org. Certificate: {'subject': ((('commonName', 'anaconda.com'),),), 'subjectAlt
Name': [('DNS', 'anaconda.com'), ('DNS', 'anacondacloud.com'), ('DNS', 'anaconda
cloud.org'), ('DNS', 'binstar.org'), ('DNS', 'wakari.io')]}

CondaHTTPError: HTTP None None for url <https://conda.binstar.org/menpo/win-64/r
epodata.json>
Elapsed: None

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.

SSLError(SSLError(CertificateError("hostname 'conda.binstar.org' doesn't match e
ither of 'anaconda.com', 'anacondacloud.com', 'anacondacloud.org', 'binstar.org'
, 'wakari.io'",),),)

我对康达有点新鲜,我不清楚如何解决这个问题。

1 个答案:

答案 0 :(得分:1)

尝试暂时禁用支票:

CONDA_SSL_VERIFY=false conda update --all

参考:https://github.com/conda/conda/issues/5170

在Windows上尝试运行

conda config --set ssl_verify false
conda update --all