报错解决"/>
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报错解决
发布评论