C:\Users\Win>pip install ipython
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
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:1124)'))': /simple/ipython/
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:1124)'))': /simple/ipython/
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:1124)'))': /simple/ipython/
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:1124)'))': /simple/ipython/
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:1124)'))': /simple/ipython/
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/ipython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/ipython/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1124)'))) - skipping
ERROR: Could not find a version that satisfies the requirement ipython (from versions: none)
ERROR: No matching distribution found for ipython
win10
之前是有配置pip源为清华源:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
--trusted-host参数
(成功)原因分析:
无法访问到https://pypi.tuna.tsinghua.edu.cn/simple/pip,SSL证书认证问题。
解决办法:
pip install ipython --trusted-host pypi.tuna.tsinghua.edu.cn 在语句后面将其设置为可信任即可,问题得到了解决。
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ipython --trusted-host pypi.tuna.tsinghua.edu.cn
pip install -i http://pypi.douban.com/simple/ ipython --trusted-host pypi.douban.com
可以看到,此时2023年6月17日清华源不能用了,这里就暂且使用豆瓣源即可。
pip config set global.index-url http://pypi.douban.com/simple/
#后面使用如下命令安装python库就好
pip install ipython --trusted-host pypi.douban.com
https://blog.csdn.net/qq_32473523/article/details/122087467
https://blog.csdn.net/yuan2019035055/article/details/127530222
我的博客主旨:
微信二维码
x2675263825 (舍得), qq:2675263825。
微信公众号
《云原生架构师实战》
语雀
https://www.yuque.com/xyy-onlyone
csdn
https://blog.csdn.net/weixin_39246554?spm=1010.2135.3001.5421
知乎
https://www.zhihu.com/people/foryouone
好了,关于本次就到这里了,感谢大家阅读,最后祝大家生活快乐,每天都过的有意义哦,我们下期见!