2017-07-12 15 views
1

我的蟒蛇并没有任何更多的工作:畅达:ERROR requests.packages.urllib3.connection:_match_hostname(360):证书不符合预期的主机名:conda.binstar.org

通过类型

conda install pandas 

得到

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'),),), 'subjectAltName': [('DNS', 'anaconda.com'), ('DNS', 'anacondacloud.com'), ('DNS', 'anacondacloud.org'), ('DNS', 'binstar.org'), ('DNS', 'wakari.io')]} 

CondaHTTPError: HTTP None None for url <https://conda.binstar.org/ottogroup/osx-64/repodata.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 either of 'anaconda.com', 'anacondacloud.com', 'anacondacloud.org', 'binstar.org', 'wakari.io'",),),) 

回答

2

我有同样的问题(MAC OS 10.12.4和畅达版本4.3.22)。我执行

CONDA_SSL_VERIFY=false conda update conda requests pyopenssl cryptography 

推荐在Conda HTTP Error hostname doesn't match #5170,它解决了这个问题。任何conda命令我然后尝试工作正常(即,conda update conda,conda create -n py3test python=3 anaconda等)。

+0

禁用SSL验证听起来像一个坏主意(即不安全)。 – rudolfbyker

相关问题