为什么在使用 'conda update --all' 时会出现以下错误,我该如何解决?
Why do I get the following error when using 'conda update --all' and how do I fix it?
我是 运行 conda 4.3.18 on win-64 with python 3.6.0。直到最近,我一直在 运行 使用 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'",),),)
我对 conda 有点陌生,我不清楚应该如何解决这个问题。
尝试暂时禁用检查:
CONDA_SSL_VERIFY=false conda update --all
参考:https://github.com/conda/conda/issues/5170
在 Windows 上尝试 运行
conda config --set ssl_verify false
conda update --all
我是 运行 conda 4.3.18 on win-64 with python 3.6.0。直到最近,我一直在 运行 使用 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'",),),)
我对 conda 有点陌生,我不清楚应该如何解决这个问题。
尝试暂时禁用检查:
CONDA_SSL_VERIFY=false conda update --all
参考:https://github.com/conda/conda/issues/5170
在 Windows 上尝试 运行
conda config --set ssl_verify false
conda update --all