在命令上,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.
答案 0 :(得分:1)
您应该按照错误消息中的建议更新点子。如果它与可能已过时的TLS版本有关,则可以解决您的问题。
答案 1 :(得分:0)
打开anaconda导航器,尝试从笔记本内部升级jupyternotebook和导航器,否则您应该重新安装,实际上我也遇到了这个问题。我在互联网上进行了大量搜索,但最后我卸载并重新安装了它,然后下载了所有的库,现在一切正常。
see this image on clicking on circled area you can upgrade this