已解决ERROR: Could not find a version that satisfies the requirement xpinyin (from versions: none)

已解决(pip使用阿里云镜像安装第三方模块失败)ERROR: Could not find a version that satisfies the requirement xpinyin (from versions: none)
ERROR: No matching distribution found for xpinyin
WARNING: The repository located at mirrors.aliyun.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.aliyun.com’.







报错代码



粉丝群一个小伙伴用pip使用阿里云镜像安装第三方模块,但是发生了报错(当时他心里瞬间凉了一大截,跑来找我求助,然后顺利帮助他解决了,顺便记录一下希望可以帮助到更多遇到这个bug不会解决的小伙伴),报错代码如下:

pip3 install xpinyin -i http://mirrors.aliyun.com/pypi/simple/


报错信息截图如下所示


在这里插入图片描述

ERROR: Could not find a version that satisfies the requirement xpinyin (from versions: none)
ERROR: No matching distribution found for xpinyin
WARNING: The repository located at mirrors.aliyun.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.aliyun.com'.



报错翻译



报错信息翻译如下所示

错误:找不到满足xpinyin要求的版本(来自版本:none)
错误:找不到xpinyin的匹配分发
警告:存储库位于mirrors.aliyun。com不是受信任或安全的主机,正在被忽略。如果此存储库通过HTTPS提供,我们建议您改用HTTPS,否则您可能会使此警告静音,并使用“–trusted host mirrors.aliyun.com”允许它。




报错原因



报错原因

使用的阿里云镜像安装第三方模块,但是镜像地址不受信任所以会报错,小伙伴们按下面的方法修改代码解决即可!!!





解决方法



在pip命令后面加上--trusted-host mirrors.aliyun.com表示允许它:

pip3 install xpinyin -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

再次安装运行成功:


在这里插入图片描述


帮忙解决

本文已收录于:《告别Bug专栏》,欢迎免费订阅

本专栏用于记录学习和工作中遇到的各种疑难编程Bug问题,以及粉丝群里小伙伴提出的各种问题,文章形式:报错代码 + 报错翻译 + 报错原因 + 解决方法,包括程序安装、运行程序过程中遇到的等等问题,博主心愿:让天下没有难学的编程,从此告别Bug!订阅专栏+关注博主后可私聊进全栈学习交流群帮忙解决问题,和小伙伴们交流学习,共同进步!!!

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
xiaoxingxing的头像xiaoxingxing管理团队
上一篇 2023年3月5日 上午11:59
下一篇 2023年3月5日 下午12:00

相关推荐