天天看点

Linux下python换pip源

直接在复制下方命令到命令行,把源换为阿里云的。

mkdir ~/.pip
cat > ~/.pip/pip.conf << EOF
[global]
trusted-host=mirrors.aliyun.com
index-url=https://mirrors.aliyun.com/pypi/simple/
EOF