Update lib.sh

pull/282/head
midoks 2 years ago
parent ff0cb6eb31
commit 85258dd80b
  1. 9
      scripts/lib.sh

@ -47,11 +47,14 @@ else
echo "OK" echo "OK"
fi fi
#面板需要的库 #面板需要的库
if [ ! -f /usr/local/bin/pip3 ];then if [ ! -f /usr/local/bin/pip3 ];then
# python3 -m pip install --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
python3 -m pip install --upgrade pip setuptools wheel -i https://pypi.python.org/pypi if [ ! -z "$cn" ];then
python3 -m pip install --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple
else
python3 -m pip install --upgrade pip setuptools wheel -i https://pypi.python.org/pypi
fi
fi fi
which pip && pip install --upgrade pip which pip && pip install --upgrade pip

Loading…
Cancel
Save