WARNING: Retrying (Retry(total=0..的解决方法

面对这个问题
在这里插入图片描述

参考这篇文章 pip.ini文件配置

与其不同的是,我的解决方法是在这两个相对路径下全改为

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

在这里插入图片描述
保存即可。

(base) C:\Users\Li>conda create -n facefusion Retrieving notices: ...working... DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/notices.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=5)")': /pkgs/msys2/notices.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/notices.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=5)")': /pkgs/main/notices.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/notices.json HTTP/1.1" 404 None DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/notices.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=5)")': /pkgs/r/notices.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/msys2/notices.json HTTP/1.1" 404 None DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/notices.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=5)")': /pkgs/r/notices.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/notices.json HTTP/1.1" 404 None done Collecting package metadata (current_repodata.json): done Solving environment: done DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None) DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/main/win-64/current_repodata.json WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/msys2/win-64/current_repodata.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/noarch/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/r/noarch/current_repodata.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/r/win-64/current_repodata.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/noarch/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/msys2/noarch/current_repodata.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/msys2/noarch/current_repodata.json HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/current_repodata.json HTTP/1.1" 200 None DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/msys2/win-64/current_repodata.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/noarch/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/r/noarch/current_repodata.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None) DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None) DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/noarch/current_repodata.json HTTP/1.1" 200 None WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/r/win-64/current_repodata.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443 WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/main/win-64/current_repodata.json DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/msys2/win-64/current_repodata.json HTTP/1.1" 200 None
最新发布
10-05
当使用`conda create -n facefusion`命令创建虚拟环境时出现`ReadTimeoutError`和重试问题,通常是由于网络连接不稳定、镜像源问题或服务器负载过高等原因导致的。以下是一些可能的解决办法: ### 更换镜像源 Conda 默认的镜像源在国内访问可能较慢,可以更换为国内的镜像源,如清华大学镜像源。可以通过以下命令添加清华大学镜像源: ```bash conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes ``` 如果之后想恢复默认镜像源,可以使用以下命令: ```bash conda config --remove-key channels ``` ### 增加超时时间 可以通过设置`conda`的`remote_connect_timeout_secs`和`remote_read_timeout_secs`参数来增加连接和读取的超时时间。在`.condarc`文件中添加或修改以下内容: ``` remote_connect_timeout_secs: 60.0 remote_read_timeout_secs: 600.0 ``` 也可以使用命令行临时设置: ```bash conda config --set remote_connect_timeout_secs 60 conda config --set remote_read_timeout_secs 600 ``` ### 使用代理 如果网络存在限制,可以使用代理来解决连接问题。假设使用的是 HTTP 代理,可以使用以下命令设置代理: ```bash conda config --set proxy_servers.http http://your_proxy_address:your_proxy_port conda config --set proxy_servers.https http://your_proxy_address:your_proxy_port ``` 如果不需要代理了,可以使用以下命令移除代理设置: ```bash conda config --remove-key proxy_servers ``` ### 手动下载包 如果某些包下载超时,可以手动从镜像源下载对应的包文件(`.tar.bz2`格式),然后使用`conda install`命令从本地安装: ```bash conda install /path/to/your/package.tar.bz2 ``` ### 检查网络环境 确保网络连接稳定,尝试切换网络环境,如从 Wi-Fi 切换到移动数据,或者反之。也可以尝试重启路由器或调制解调器。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值