fix: 消除 pip root 警告
This commit is contained in:
parent
48a769309b
commit
772af08a1f
@ -63,7 +63,7 @@ if [ -d "$INSTALL_DIR/deps" ] && ls "$INSTALL_DIR/deps"/*.whl >/dev/null 2>&1; t
|
||||
python3 "$INSTALL_DIR/deps/get-pip.py" --no-index --find-links="$INSTALL_DIR/deps/" --no-setuptools --no-wheel 2>&1
|
||||
fi
|
||||
fi
|
||||
if pip3 install --force-reinstall "$INSTALL_DIR"/deps/*.whl 2>&1; then
|
||||
if pip3 install --force-reinstall --root-user-action=ignore "$INSTALL_DIR"/deps/*.whl 2>&1; then
|
||||
echo " ✓ Python 依赖已安装"
|
||||
else
|
||||
echo " ⚠ Python 依赖安装失败,尝试桥接用户包..."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user