Update lib.sh

This commit is contained in:
midoks 2023-06-13 17:43:39 +08:00
parent ffb3288f3d
commit 0ca34afacd
1 changed files with 4 additions and 3 deletions

View File

@ -74,13 +74,14 @@ if [ "$LOCAL_ADDR" != "common" ];then
fi
echo "pypi source:$PIPSRC"
#面板需要的库
if [ ! -f /usr/local/bin/pip3 ] && [ ! -f /usr/bin/pip3 ];then
python3 -m pip install --upgrade pip setuptools wheel -i $PIPSRC
fi
which pip3 && pip3 install --upgrade pip -i $PIPSRC
pip3 install --upgrade pip setuptools wheel -i $PIPSRC
which pip3 && pip3 install --upgrade pip -i $PIPSRC
pip3 install --upgrade pip setuptools wheel -i $PIPSRC
fi
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt -i $PIPSRC