pip源切换

OnethingAI

发布于:2025-06-12

1,切换成清华pip源

cat << EOF > /root/.config/pip/pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
EOF

2, 切换成阿里pip源

cat << EOF > /root/.config/pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
EOF

提交反馈