pip3安装软件出现time out错误
2018-07-30 本文已影响8人
Al_不期而遇
在我安装absible的时候,网速很慢,考虑到可能是国外的镜像做出如些变动:
1、临时修改pip源
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ ansible
2、永久修改pip源
vi ~/.pip/pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/