python中装charest模块问题

本文介绍在Python包安装中遇到'Could not find a version that satisfies the requirement'错误时,如何通过升级pip并修改chardet模块的默认下载超时时间来解决问题。
摘要由CSDN通过智能技术生成

报错

ERROR: Could not find a version that satisfies the requirement charest (from versions: none)
ERROR: No matching distribution found for charest

报错原因:在使用pip安装python相关包时,常常会由于网络问题,导致超时,下载失败。

解决办法:修改timeout加长download的下载时间,缓解超时的问题。 默认timeout:不指定timeout时15s。

在这里插入图片描述

解决步骤:

更新pip版本:

python.exe -m pip install --upgrade pip

修改默认时间装charest模块:

pip --default-timeout=100 install chardet

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值