解决:The repository located at pypi.doubanio.com is not a trusted or secure host and is being ignored.

使用pip来安装python包对大家来说应该是家常便饭了,但是很多时候因为pip的源都不在国内,如果没有科学上网的话,安装起来会非常慢!因此就想换成国内的源来加速下载!

目前国内的源有:

清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/ 
豆瓣:http://pypi.douban.com/simple/、

因此直接使用:

pip install -i http://pypi.doubanio.com/simple/ kivy.deps.gstreamer

来进行源安装,但是往往会出现如下问题:The repository located at pypi.doubanio.com is not a trusted or secure host and is being ignored.


因此这里面很多都是http的源,如果直接使用http的话就会出错,那怎么办呢?看了上面的提示将http改为https试试

pip install -i https://pypi.doubanio.com/simple/ kivy.deps.gstreamer


搞定!

猜你喜欢

转载自blog.csdn.net/qq_15969343/article/details/79057042
今日推荐