pip配置清华源 2019-08-08 | 编程 | reads 方法一: 1 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 方法二: 1 2 3 4 5 6 7 8 9 mkdir ~/.pip cat > ~/.pip/pip.conf << EOF [global] trusted-host=pypi.tuna.tsinghua.edu.cn index-url=https://pypi.tuna.tsinghua.edu.cn/simple EOF 安装pip时加速: 1 python3 -i https://pypi.tuna.tsinghua.edu.cn/simple get-pip.py python