WARNING: Certificate did not match expected hostname: mirrors.cloud.aliyuncs.com.

我遇到了两个问题

第一个:

WARNING: The repository located at mirrors.cloud.aliyuncs.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host mirrors.cloud.aliyuncs.com’.。。。。。。

我根据报错的信息,打开了root/.pip/pip.conf,如何在http前面加了个s,https如何保存,结果又报错了,我很无语,懒得看错误了

WARNING: Certificate did not match expected hostname: mirrors.cloud.aliyuncs.com.。。。。。。

直接去网上找吧,功夫不负有心人!!

折腾半小时,终于找到了解决办法,

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com

输入pip config list
在这里插入图片描述
大功告成

  • 8
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

弈鸣coding

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值