查找pip.conf 配置的地址:
echo $PIP_CONFIG_FILE
修改 $PIP_CONFIG_FILE 的文件即可 🙂
附上 配置豆瓣和清华源的配置:
[global]
index-url = https://pypi.douban.com/simple/
extra-index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
[install]
trusted-host=pypi.douban.com pypi.tuna.tsinghua.edu.cn