2017-07-12 11 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

相關問題