for Chinese users, replace Tsinghua pip mirrors with Alibaba Cloud to avoid 403 http error

This commit is contained in:
josc146
2024-03-13 21:37:35 +08:00
parent 333619839a
commit 5692579f56
5 changed files with 8 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
echo $@
if [[ ${cnMirror} == 1 ]]; then
export PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
export PIP_INDEX_URL="https://mirrors.aliyun.com/pypi/simple"
if grep -q "mirrors.aliyun.com" /etc/apt/sources.list; then
echo "apt cnMirror already set"
else