pip.ini的内容:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple
trusted-host = mirrors.aliyun.com
disable-pip-version-check = true
timeout = 120
[list]
format = columns
位置在%USERPROFILE%pippip.ini,如果没有,则新建一个。
%USERPROFILE% 就是我的文档目录。
linux 下 :
cat > ~/.pip/pip.conf << EOF
[global]
index-url = http://mirrors.aliyun.com/pypi/simple
trusted-host = mirrors.aliyun.com
disable-pip-version-check = true
timeout = 120
[list]
format = columns
EOF