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

2019/11/07 12:58
阅读数 31
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

 

 

展开阅读全文
pip
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部