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