python - pip install numpy 没有安装文件

标签 python numpy ssl pip conda

On command, pip install numpy 这个错误来了

  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certifica
te verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/numpy/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certifica
te verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/numpy/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certifica
te verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/numpy/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certifica
te verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/numpy/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certifica
te verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /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: /sim
ple/numpy/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))) - skipping
  Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

最佳答案

您应该按照错误消息中的建议更新您的 pip。如果它与可能已过时的 TLS 版本有关,这将解决您的问题。

关于python - pip install numpy 没有安装文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51692229/

相关文章:

python - Paramiko Python : IOError: [Errno 13] Permission denied

python - Python 请求的 SSL 证书问题

python - 证书验证失败 : self signed certificate in certificate chain (_ssl. c:1129)

selenium - PhantomJS 无法访问自签名 HTTPS 页面 Codeception

Python/Hive 接口(interface)使用 fetchone() 速度慢,使用 fetchall() 挂起

python - pip wheel 条件依赖

python - 更新多条输出线

python - 为数组中的 nan 和 inf 值创建掩码

python - 什么更快 : Python 3's ' len' or numpys shape?

python - Numpy set dtype=None,不能拼接列和set dtype=object cannot set dtype.names