本人在安装modelscope包时一直安装失败,报如下错误:
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:852)'),)': /simple/modelscope/ Could not fetch URL https://pypi.org/simple/modelscope/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/modelscope/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:852)'),)) - skipping.
总以为是用了镜像源的原因,删除了使用的镜像源,还是没能解决,甚至临时禁用 SSL 验证也没有解决。
突然意识到自己挂了梯子,开了代理,于是我把它关了再重新安装,成功了!!!
本人花了这么多时间解决这个问题,没想到就只是因为开了代理,其实之前也遇到过这个问题,也知道开代理会影响安装包,但总是在出现类似问题时,无法第一时间想起关闭代理!!!怒吼!!!