解決 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

 


參考:https://blog.csdn.net/qq_15969343/article/details/79057042


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM