(SSLError [SSL:CERTIFICATE_VERIFY_FAILED]

时间:2018-07-11 20:34:55

标签: windows numpy pip install

可以轻松地在Mac上安装numpy,并且尝试在工作Windows计算机上安装numpy时,出现以下错误:

C:\Python27>python -m pip install numpy
Collecting numpy
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': 
/simple/numpy/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': 
/simple/numpy/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': 
/simple/numpy/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': 
/simple/numpy/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': 
/simple/numpy/
  Could not fetch URL https://pypi.org/simple/numpy/: There was a problem 
confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', 
port=443): Max retries exceeded with url: /simple/numpy/ (Caused by 
SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed (_ssl.c:726)'),)) - skipping
  Could not find a version that satisfies the requirement numpy (from 
versions: )
No matching distribution found for numpy

我想知道在我的工作中服务器中是否有阻止防火墙的块(例如防火墙)导致此错误。如果是这样,您将建议如何解决该错误?

0 个答案:

没有答案