Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate

一时失言乱红尘 2021-12-19 02:47 746阅读 0赞

安装python后,直接使用pip install 安装库碰到的错误

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

解决:
https://www.cnblogs.com/jiyanjiao-702521/p/9960071.html

pip换源

https://blog.csdn.net/zhao_5352269/article/details/83184017

发表评论

表情:
评论列表 (有 0 条评论,746人围观)

还没有评论,来说两句吧...

相关阅读