fix: get-pip.py 加 --no-setuptools --no-wheel,只需 pip wheel 即可离线安装
This commit is contained in:
parent
fa5ef7a88a
commit
48a769309b
@ -60,7 +60,7 @@ if [ -d "$INSTALL_DIR/deps" ] && ls "$INSTALL_DIR/deps"/*.whl >/dev/null 2>&1; t
|
||||
# 先确保 pip3 可用(离线安装)
|
||||
if ! command -v pip3 &>/dev/null; then
|
||||
if [ -f "$INSTALL_DIR/deps/get-pip.py" ]; then
|
||||
python3 "$INSTALL_DIR/deps/get-pip.py" --no-index --find-links="$INSTALL_DIR/deps/" 2>&1
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user