The repository located at pypi.douban.com is not a trusted or secure host and is being ignored

vi ~/.pip/pip.con
#正确写法 
 1 [global]
  2 timeout = 6000
  3 index-url = https://pypi.douban.com/simple
  4 
  5 [install]
  6 use-mirrors = true
  7 mirrors = https://pypi.douban.com/simple/
  8 trusted-host=pypi.douban.com


#错误写法
 1 [global]
  2 timeout = 6000
  3 index-url = http://pypi.douban.com/simple
  4 
  5 [install]
  6 use-mirrors = true
  7 mirrors = http://pypi.douban.com/simple/
  8 trusted-host=pypi.douban.com

 

 

posted @ 2019-11-07 12:58  青春叛逆者  阅读(1611)  评论(0编辑  收藏  举报