pip install tensorflow报错解决

编程入门 行业动态 更新时间:2024-10-25 04:20:24

pip install tensorflow<a href=https://www.elefans.com/category/jswz/34/1771188.html style=报错解决"/>

pip install tensorflow报错解决

报错内容

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/tensorflow/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/tensorflow/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/tensorflow/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/tensorflow/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/tensorflow/
Could not fetch URL /: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi', port=443): Max retries exceeded with url: /simple/tensorflow/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))) - skipping
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow
Could not fetch URL /: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))) - skipping

重点是看到里面这一句:

Could not fetch URL /: There was a problem confirming the ssl certificate: HTTPSConnectionPool

解决方法

使用命令替换源:

pip install tensorflow -i  --trusted-host pypi.douban

 可供选择的源:

/ 阿里云
/ 中国科技大学
/ 豆瓣
/ 清华大学
/ 中国科学技术大学

更多推荐

pip install tensorflow报错解决

本文发布于:2024-02-27 06:16:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1705494.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   pip   install   tensorflow

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!