WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))’: /simple/imblearn/
原因:该源不是受信任源
解决方法:
在用户下面新建文件pip.ini
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))解决办法
最新推荐文章于 2024-09-06 16:28:42 发布
文章讲述了在使用pip安装Imblearn时遇到的连接错误,原因是源不受信任。解决方法是创建一个pip.ini文件,设置全局index-url为阿里云镜像,并添加trusted-host为mirrors.aliyun.com。
摘要由CSDN通过智能技术生成