使用conda下载库时报错 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)

如图:

原因:位于https://pypi.tuna.tsinghua.edu.cn/simple/的存储库不是受信任的或安全的主机,正在被忽略。要求使用“–trusted host pypi.tuna.tsinghua.edu.cn/simple/
”允许此警告。

即修改命令为:

pip install d2l==1.0.3 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn

这个好像是一次性的,每次都需要加上trust,之后找一下彻底的修改

后面又出现了新问题:

ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\\anaconda\\lib\\site-packages\\numpy\\core\\_multiarray_tests.cp39-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

原因:权限不足,在 pip install 后面加上 –user 即可

修改命令为:pip install --user d2l==1.0.3 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn

后面又报错:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
daal4py 2021.3.0 requires daal==2021.2.3, which is not installed.
gensim 4.3.0 requires FuzzyTM>=0.4.0, which is not installed.

从问题提示来看,是pip 的依赖项解析器当前未考虑安装的所有包。

然后手动安装即可:

pip install --user daal==2021.2.3 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn

pip install --user FuzzyTM==1.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn

问题解决!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值