1.检查pip.conf文件是否存在
cd ~
mkdir .pip
ls ~/.pip
2.直接编辑pip.conf
vi ~/.pip/pip.conf
[global]
timeout = 6000
index-url = http://pypi.douban.com/simple/
[install]
use-mirrors = true
mirrors = http://pypi.douban.com/simple/
trusted-host = pypi.douban.com
网友评论