pip源提示“not a trusted or secure host” 解决

Posted shenfei2031

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pip源提示“not a trusted or secure host” 解决相关的知识,希望对你有一定的参考价值。

问题:
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‘. Could not find a version that satisfies the requirement proxy (from versions: ) No matching distribution found for proxy
答案:
http://mirrors.aliyun.com/pypi/simple/
改成
https://mirrors.aliyun.com/pypi/simple/

以上是关于pip源提示“not a trusted or secure host” 解决的主要内容,如果未能解决你的问题,请参考以下文章

pip源提示“not a trusted or secure host” 解决

CentOs 永久置换pip镜像源

记一次Python pip安装失败的总结

pip安装完成后提示这个怎么办?

python国内使用pip提示超时

pip和apt-get换源